Skip to content

Commit 3a5e678

Browse files
committed
Set debug button to advance to the first breakpoint
1 parent fcb7a6f commit 3a5e678

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cq_editor/widgets/debugger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ def debug(self, value):
352352
# clear possible traceback
353353
self.sigTraceback.emit(None, self.script)
354354

355+
# Move to the first breakpoint
356+
self.debug_cmd(DbgState.CONT)
357+
355358
try:
356359
sys.settrace(self.trace_callback)
357360
exec(code, module.__dict__, module.__dict__)

0 commit comments

Comments
 (0)