I use this configuration and work only if I insert this two line

// "stopOnEntry": true
// "justMyCode": false

{
  "version": "0.2.0",
  "configurations": [
    {
        "name": "Python: Debug Current File",
        "type": "python",
        "request": "launch",
        "program": "${file}",
        "console": "integratedTerminal",
        "stopOnEntry": true,
        "justMyCode": false
    },
  ]
}
Answer from Marco Graziano on Stack Overflow
🌐
Reddit
reddit.com › r/vscode › vs code debug not stopping on breakpoints
r/vscode on Reddit: VS Code debug not stopping on breakpoints
June 10, 2023 -

I'm new to using VS Code as I¡ve always used Eclipse IDE. I'm trying to debug my java file in which I've created a breakpoint, but the debugger just runs the code as if there wasn't such breakpoint..

I've seen some other people struggle with this, so here's my launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Java",
            "type": "java",
            "request": "launch",
            "stopOnEntry": true,
            "jdkPath": "${env:JAVA_HOME}/bin",
            "cwd": "${fileDirname}",
            "startupClass": "${fileBasenameNoExtension}",
            "classpath": [
                ".",
                "${fileDirname}"
            ]
        },
        {
            "name": "Java Console App",
            "type": "java",
            "request": "launch",
            "stopOnEntry": true,
            "jdkPath": "${env:JAVA_HOME}/bin",
            "cwd": "${fileDirname}",
            "startupClass": "${fileBasenameNoExtension}",
            "classpath": [
                ".",
                "${fileDirname}"
            ],
            "externalConsole": true
        },
        {
            "type": "java",
            "name": "Current File",
            "request": "launch",
            "mainClass": "${file}"
        },
        {
            "type": "java",
            "name": "Numeros",
            "request": "launch",
            "mainClass": "Numeros",
            "projectName": "progra_4bad0bd0"
        }
    ]
}

Thanks in advance

Discussions

VSCode Breakpoint not hitting/stopping when run in debugger mode - Golang
What version of Go, VS Code & VS Code Go extension are you using? Version Information Run go version to get version of Go from the VS Code integrated terminal. go version go1.19 darwin/amd64 Ru... More on github.com
🌐 github.com
27
August 18, 2022
Debugging tests is not stopping on breakpoint
Type: Bug Behaviour Expected vs. Actual Expected: setting a breakpoint on a test and then debugging the test should trigger the breakpoint to enable step-by-step execution of the test. Actual: the ... More on github.com
🌐 github.com
25
January 13, 2023
Debugger in vs-code does not stop at breakpoint but elsewhere
Describe the bug In vanilla project with vue3 + vitest + @testing-library/vue + node 18.18.2 or 20.11.1, setting and debugging breakpoints in vs-code on windows 11 does not work as expected. Debugg... More on github.com
🌐 github.com
31
March 13, 2024
python - VSCode: Why isn't debugger stopping at breakpoints? - Stack Overflow
Just My Code is a set of features ...omnisharp-vscode/blob/master/…). But I'm running a program I wrote which contains a few simple lines, and no calls to any modules. Can anyone throw any light on why I need to turn this feature off? 2021-08-14T10:56:30.24Z+00:00 ... If you're using a pytest-cov module you might also wanna have a look at pytest configuration settings note: Note If you have the pytest-cov coverage module installed, VS Code doesn't stop at breakpoints while debugging because pytest-cov ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Julia Programming Language
discourse.julialang.org › tooling › vs code
Debugger doesn't stop at breakpoints when running tests (but does during normal execution) - VS Code - Julia Programming Language
January 19, 2023 - Julia 1.7.3 VS Code 1.74.3 Julia extension 1.38.2 I’m having a problem where, when I run tests with the debugger on the program I’m working on, the debugger doesn’t stop at any breakpoints I set. If I run the program normally (meaning executing a main function) with the debugger, the ...
🌐
GitHub
github.com › golang › vscode-go › issues › 2417
VSCode Breakpoint not hitting/stopping when run in debugger mode - Golang · Issue #2417 · golang/vscode-go
August 18, 2022 - When Start Debugging is fired, the program runs successfully. However the program doesn't stop at breakpoints. Breakpoint is enabled and placed alright.
Author   riderrocks
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › developer › visualstudio › debuggers › troubleshooting-breakpoints
Troubleshoot breakpoints in the debugger - Visual Studio | Microsoft Learn
September 17, 2025 - If you deleted a breakpoint while debugging, you may hit the breakpoint again the next time you start debugging. To stop hitting this breakpoint, make sure all the instances of the breakpoint are removed from the Breakpoints window.
🌐
GitHub
github.com › microsoft › debugpy › issues › 1175
Debugging tests is not stopping on breakpoint · Issue #1175 · microsoft/debugpy
January 13, 2023 - Expected: setting a breakpoint on a test and then debugging the test should trigger the breakpoint to enable step-by-step execution of the test. Actual: the test just runs through. The debugger panel appears at the top of the window but the debugger never stops execution of the code.
Author   pcolmer
Find elsewhere
🌐
GitHub
github.com › vitest-dev › vitest › issues › 5380
Debugger in vs-code does not stop at breakpoint but elsewhere · Issue #5380 · vitest-dev/vitest
March 13, 2024 - Run the test and watch where debugger stops Result: Debugger stops at wrong line Expected: Debugger should stop at correct line · Issue goes away when removing <style>...</style> section in .vue file ... <template> <div>Hi {{ name }}</div> <div>Good</div> </template> <script setup> import { ref } from 'vue' const name = ref("Peter") console.log("Nothing special") // set breakpoint here </script> <style> .useless { color: green; } </style>
Author   bonham
🌐
GitHub
github.com › microsoft › vscode-js-debug › issues › 660
Debugger not stopping on breakpoints · Issue #660 · microsoft/vscode-js-debug
July 26, 2020 - I'm having issues similar to microsoft/vscode#103048, wanted to create a new issue so I'm not hijacking threads, it seemed like some people over there were having issues with NPM script arguments which is definitely unrelated for me. Describe the bug When the preview is enabled (now default), no breakpoints, debuggers, or initial breaks are hit. The program runs and exits with code 0 (if the node event loop is clear). To Reproduce Ubuntu 18.04, Using NVM globally, Node binary at 14.3.0, VSCode at 1.47.2, all built-in plugins enabled.
Author   jonathanrdelgado
🌐
GitHub
github.com › microsoft › vscode › issues › 120586
Debugger does not stop on breakpoints (python. VS code) · Issue #120586 · microsoft/vscode
April 5, 2021 - Whenever I try to add breakpoints to my python files, it marks it in the GUI as a breakpoint (red circle), but ignores them as if I never included them at all. The debugger just goes right over them without stopping. As a test I created an empty folder with only a short python test file, and the debugger went right over the breakpoints.
Author   PlanckBrain
🌐
GitHub
github.com › Microsoft › vscode-go › issues › 1935
Debugger does not stop on breakpoints when debugging tests · Issue #1935 · microsoft/vscode-go
September 21, 2018 - When the option is clicked my test runs but it won't stop on the breakpoint. The breakpoint is listed on the breakpoints list and marked as a red dot in the IDE. ... debughelp wantedneeds more infosymlinkIssues that occur when symlinks are usedIssues that occur when symlinks are used ... You can’t perform that action at this time.
Author   jadolg
🌐
Visual Studio Code
code.visualstudio.com › docs › debugtest › debugging
Debug code with Visual Studio Code
November 3, 2021 - A floating debug toolbar can be dragged horizontally and also down to the editor area (up to a certain distance from the top edge). A breakpoint is a special marker that pauses the execution of your code at a specific point, so you can inspect the state of your application at that point.
🌐
Visual Studio Code
code.visualstudio.com › docs › python › debugging
Python debugging in VS Code
November 3, 2021 - In such cases, running the debugger moves the breakpoint to the nearest valid line to ensure that code execution stops at that point. The configuration dropdown provides various different options for general app types: Specific steps are also needed for remote debugging and Google App Engine. For details on debugging tests, see Testing.
🌐
GitHub
github.com › microsoft › vscode-js-debug › issues › 1766
Debugger not stopping at breakpoints · Issue #1766 · microsoft/vscode-js-debug
Describe the bug Debugger is not stopping at breakpoints. I am using a workspace with 3 Angular projects. To Reproduce Steps to reproduce the behavior: Just open some Typescript file , add a breakpoint and launch the debugger. Log File I...
Author   ghost