def METHOD_NAME(self, state, filename, line_number):
    """
    Enable/disable debugging actions and handle pdb state change.
    Update debugger panel state.
    """
    if (
        state
        and filename
        and self.filename
        and osp.normcase(filename) == osp.normcase(self.filename)
    ):
        self.debugger_panel.start_clean()
        self.debugger_panel.set_current_line_arrow(line_number)
        return
    self.debugger_panel.stop_clean()