Trouble removing breakpoint during debug session
See original GitHub issueFrom @gpassero on April 1, 2017 14:26
Environment data
VS Code version: 1.10.2 Python Extension version: 0.6.0 Python Version: 3.5 OS and version: Windows 10
Actual behavior
Debugger stops on breakpoints I have removed/disabled.
Expected behavior
Debugger doesn’t stop on removed breakpoints.
Steps to reproduce:
- Put a breakpoint on the code (preferably inside a for loop)
- Start debugging and wait until the runner stops on the breakpoint
- Remove the breakpoints
- Continue the debugger
The problem also happens on breakpoints I add during a debugging session.
Settings
Your launch.json (if dealing with debugger issues):
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${config.python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceRoot}",
"env": null,
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"BreakOnSystemExitZero"
]
},
Your settings.json:
{
"editor.rulers": [120],
"python.linting.pylintArgs": [
"--max-line-length=120"
],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"window.zoomLevel": 0,
"files.trimTrailingWhitespace": true,
"python.autoComplete.extraPaths": [
],
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
"window.menuBarVisibility": "default",
"editor.renderControlCharacters": false,
"files.autoSave": "afterDelay"
}
Logs
Output from Python
output panel
Output from Console window
(Help->Developer Tools menu)
Copied from original issue: DonJayamanne/pythonVSCode#857
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Trouble removing breakpoint during debug session #98 - GitHub
Put a breakpoint on the code (preferably inside a for loop); Start debugging and wait until the runner stops on the breakpoint; Remove...
Read more >Visual Studio refuses to forget breakpoints? - Stack Overflow
go to Debug menu then Delete All Breakpoints Ctrl+Shift+F9.
Read more >How to REMOVE system breakpoint at C$$EXITE? - TI E2E
I need two HW breakpoint,but when i load project into debug mode one breakpoin will be used by debugger,so only one remain.
Read more >Use breakpoints in the Visual Studio debugger - Microsoft Learn
Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window. Choose ...
Read more >Breakpoints | PhpStorm Documentation - JetBrains
Set exception breakpoints · Click View Breakpoints View Breakpoints button in the left part of the Debug tool window or press Ctrl+Shift+F8 ....
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DonJayamanne Small comment to inform you that I cannot reproduce the problem on my side either with Python regular or experimental debugger. Breakpoints can now be correctly removed on both Windows and Linux, making the debugging experience much better.
Thanks for the development efforts put on the support of Python language for this great cross-platform open source editor. This is really appreciated.
Best regards
@DonJayamanne I tested both with “python” and “pythonExperimental” types and the problem didn’t happen. I used a simple script in my test, hope the problem won’t happen with more complex code. Thanks for the help!