You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mawright opened this issue
Aug 14, 2018
· 2 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
I reported this bug to the vscode-python repo but was referred upstream to the core vscode repo. My example below is in Python but a Microsoft dev on vscode-python confirmed it also affects the native Typescript debugger: microsoft/vscode-python#2389
VSCode Version: 1.26.0, and 1.27.0-insider
OS Version: Ubuntu 16.04
Behavior
When lines are added/removed in the source code while a debug run is active (i.e., when paused at a breakpoint), all breakpoints stay at their line number and are not moved up or down as lines are added or removed. This means that when the debug run is relaunched, any breakpoints below added/removed lines will be on a different statement than when they were created.
This also means that the behavior of how breakpoints move is different between whether you are editing code while debugging or not. During normal operation, breakpoints move with their statements. During debugging, breakpoints stay in place.
Expected Behavior
If code is edited during debugging, breakpoints follow their original statement (moving down 1 line for each line inserted above and up 1 line for each line deleted above) after the debug run is ended.
Steps to Reproduce:
Non-debug behavior: Breakpoint moves with its original statement c = 3
Debug behavior: The statement c = 3 begins at line 5, is moved down two lines, but the breakpoint stays at line 5, even after the debug run is completed.
Does this issue occur when all extensions are disabled?: N/A, since I can't run my Python test without the Python extension. However I tested it on the insiders build with the only installed extension being Python and it still happened.
The text was updated successfully, but these errors were encountered:
isidorn
added
bug
Issue identified by VS Code Team member as probable bug
debug
Debug viewlet, configurations, breakpoints, adapter issues
labels
Aug 15, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
I reported this bug to the vscode-python repo but was referred upstream to the core vscode repo. My example below is in Python but a Microsoft dev on vscode-python confirmed it also affects the native Typescript debugger: microsoft/vscode-python#2389
Behavior
When lines are added/removed in the source code while a debug run is active (i.e., when paused at a breakpoint), all breakpoints stay at their line number and are not moved up or down as lines are added or removed. This means that when the debug run is relaunched, any breakpoints below added/removed lines will be on a different statement than when they were created.
This also means that the behavior of how breakpoints move is different between whether you are editing code while debugging or not. During normal operation, breakpoints move with their statements. During debugging, breakpoints stay in place.
Expected Behavior
If code is edited during debugging, breakpoints follow their original statement (moving down 1 line for each line inserted above and up 1 line for each line deleted above) after the debug run is ended.
Steps to Reproduce:
c = 3
c = 3
begins at line 5, is moved down two lines, but the breakpoint stays at line 5, even after the debug run is completed.Does this issue occur when all extensions are disabled?: N/A, since I can't run my Python test without the Python extension. However I tested it on the insiders build with the only installed extension being Python and it still happened.
The text was updated successfully, but these errors were encountered: