-
Notifications
You must be signed in to change notification settings - Fork 646
No warning when debugging a file that has been modified after starting the debugging session #2559
Comments
Fair point Therefore, we can definitely use the two and show a warning that a file change has been saved while the debug session is in progress. Thanks for reporting! |
PRs are welcome to add this feature Code Pointers:
|
Hi @ramya-rao-a, I would like to fix this issue and i have made the PR as attached. However, i wonder whether this must be fixed from each extension or visual studio code core code. Second, should the warning message added when the file has been changed or only when the file has been changed then saved? Please advise. In visual studio, there is condition where we are not allowed to edit code during debugging. Can we identify that condition in this extension? |
VS Code will not be aware of which code files should be allowed to be edited and which shouldnt when a debug session is started. Therefore, it cannot make that decision and each language extension is in the best place to make this decision.
On save should be enough.
Can you elaborate? |
There is now a warning that shows up if you save changes to a Go file when there is an active debug session |
There is no warning that the executable being debugged is stale,m now the line numbers reported by the debugger will be nonsensical and behavior of the debugged program will diverge from what would be expected from the source code displayed on screen.
The text was updated successfully, but these errors were encountered: