@@ -422,12 +422,12 @@ def setup(self, f, t):
422422 # Override Bdb methods
423423
424424 def user_call (self , frame , argument_list ):
425+ """This method is called when there is the remote possibility
426+ that we ever need to stop in this function."""
425427 # TODO: figure out a way to move this down to 'def interaction'
426428 # or right before self.trace.append ...
427429 if self .done : return
428430
429- """This method is called when there is the remote possibility
430- that we ever need to stop in this function."""
431431 if self ._wait_for_mainpyfile :
432432 return
433433 if self .stop_here (frame ):
@@ -442,9 +442,9 @@ def user_call(self, frame, argument_list):
442442 self .interaction (frame , None , 'call' )
443443
444444 def user_line (self , frame ):
445+ """This function is called when we stop or break at this line."""
445446 if self .done : return
446447
447- """This function is called when we stop or break at this line."""
448448 if self ._wait_for_mainpyfile :
449449 if (self .canonic (frame .f_code .co_filename ) != "<string>" or
450450 frame .f_lineno <= 0 ):
@@ -453,18 +453,18 @@ def user_line(self, frame):
453453 self .interaction (frame , None , 'step_line' )
454454
455455 def user_return (self , frame , return_value ):
456+ """This function is called when a return trap is set here."""
456457 if self .done : return
457458
458- """This function is called when a return trap is set here."""
459459 frame .f_locals ['__return__' ] = return_value
460460 self .interaction (frame , None , 'return' )
461461
462462 def user_exception (self , frame , exc_info ):
463+ """This function is called if an exception occurs,
464+ but only if we are to stop at or just below this level."""
463465 if self .done : return
464466
465467 exc_type , exc_value , exc_traceback = exc_info
466- """This function is called if an exception occurs,
467- but only if we are to stop at or just below this level."""
468468 frame .f_locals ['__exception__' ] = exc_type , exc_value
469469 if type (exc_type ) == type ('' ):
470470 exc_type_name = exc_type
0 commit comments