Skip to content

Commit

Permalink
Merge from 3.x: PR #5086
Browse files Browse the repository at this point in the history
Fixes #4681
  • Loading branch information
ccordoba12 committed Aug 31, 2017
2 parents e84697c + 9ab4393 commit 55db01b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder/plugins/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2433,8 +2433,13 @@ def debug_file(self):
self.run_file(debug=True)
# Fixes 2034
editor = self.get_current_editor()
if editor.get_breakpoints():
breakpoints = editor.get_breakpoints()
if breakpoints:
time.sleep(0.5)
if editor.get_cursor_line_number() == breakpoints[0][0]:
# Not need to execute any code because the first breakpoint
# is set in the first line with code
return
self.debug_command('continue')

@Slot()
Expand Down

0 comments on commit 55db01b

Please sign in to comment.