'This function is called when we stop or break at this line.'

def user_line(self, frame):

    if self._wait_for_mainpyfile:
        if ((self.mainpyfile != self.canonic(frame.f_code.co_filename)) or (frame.f_lineno <= 0)):
            return
        self._wait_for_mainpyfile = 0
    if self.bp_commands(frame):
        self.interaction(frame, None)
