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

Commit 8594b1c

Browse files
committed
only overwrite init breakpoints with breakpoints, if there are any breakpoints
1 parent 49492a6 commit 8594b1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pugdebug/pugdebug.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,11 @@ def handle_debugging_stopped(self):
358358
"""
359359
self.debugger.cleanup()
360360

361-
self.init_breakpoints = self.breakpoints
362-
self.breakpoints = []
361+
# Only set breakpoints as init_breakpoints
362+
# if there are any breakpoints set
363+
if len(self.breakpoints) > 0:
364+
self.init_breakpoints = self.breakpoints
365+
self.breakpoints = []
363366

364367
self.main_window.toggle_actions(False)
365368

0 commit comments

Comments
 (0)