mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Set correct reason when stopped on 'goto' (#1316)
This commit is contained in:
parent
e14917588a
commit
b6e83df4bb
2 changed files with 3 additions and 1 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue