Set correct reason when stopped on 'goto' (#1316)

This commit is contained in:
Karthik Nadig 2019-04-04 16:10:42 -07:00 committed by GitHub
parent e14917588a
commit b6e83df4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1820,6 +1820,8 @@ class VSCodeMessageProcessor(VSCLifecycleMsgProcessor):
reason = 'exception'
elif reason == pydevd_comm.CMD_SET_BREAK:
reason = 'breakpoint'
elif reason == pydevd_comm.CMD_SET_NEXT_STATEMENT:
reason = 'goto'
else:
reason = 'pause'

View file

@ -80,7 +80,7 @@ def test_set_next_statement(pyfile, run_as, start_method):
session.wait_for_next(Event('continued'))
stop = session.wait_for_thread_stopped()
stop = session.wait_for_thread_stopped(reason='goto')
frames = stop.stacktrace.body['stackFrames']
line = frames[0]['line']
assert line == line_numbers['inner2']