question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble removing breakpoint during debug session

See original GitHub issue

From @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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
XFunccommented, Jul 10, 2018

@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

1reaction
gpasserocommented, Jun 6, 2018

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found