#NEWLINE# def run( self , edit ) : #NEWLINE# #INDENT# file_name = self . v . file_name ( ) #NEWLINE# if ( file_name and ( len ( self . v . sel ( ) ) == 1 ) ) : #NEWLINE# #INDENT# ( zb_line , _ ) = self . v . rowcol ( self . v . sel ( ) [ 0 ] . begin ( ) ) #NEWLINE# line = ( zb_line + 1 ) #NEWLINE# old_breakpoints = self . env . breakpoints #NEWLINE# new_breakpoints = [ b for b in self . env . breakpoints if ( not ( same_paths ( b . file_name , file_name ) and ( b . line == line ) ) ) ] #NEWLINE# if ( len ( old_breakpoints ) == len ( new_breakpoints ) ) : #NEWLINE# #INDENT# new_breakpoints . append ( dotsession . Breakpoint ( file_name , line ) ) #NEWLINE# if self . env . profile : #NEWLINE# #INDENT# self . rpc . debug_set_break ( file_name , line ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if self . env . profile : #NEWLINE# #INDENT# self . rpc . debug_clear_break ( file_name , line ) #NEWLINE# #UNINDENT# #UNINDENT# self . env . breakpoints = new_breakpoints #NEWLINE# self . env . save_session ( ) #NEWLINE# self . redraw_all_breakpoints ( )