Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 424e72c

Browse files
committed
when breaking at first line, step into only after the init breakpoints are set
1 parent 7979b9c commit 424e72c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pugdebug/pugdebug.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,6 @@ def handle_debugging_started(self):
405405

406406
self.open_document(self.debugger.get_index_file())
407407

408-
break_at_first_line = int(get_setting('debugger/break_at_first_line'))
409-
if break_at_first_line > 0:
410-
self.step_into()
411-
412408
def stop_debug(self):
413409
"""Stop a debugging session
414410
@@ -615,6 +611,8 @@ def handle_init_breakpoints_set(self):
615611
break_at_first_line = int(get_setting('debugger/break_at_first_line'))
616612
if break_at_first_line == 0:
617613
self.run_debug()
614+
else:
615+
self.step_into()
618616

619617
def handle_breakpoint_removed(self, breakpoint_id):
620618
"""Handle when a breakpoint gets removed

0 commit comments

Comments
 (0)