Setting "justMyCode": false makes it stop at breakpoint:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Debug Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "stopOnEntry": true,
            "justMyCode": false
        },
    ]
}
Answer from Ashish on Stack Overflow
🌐
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 ...
Author   PlanckBrain
🌐
Reddit
reddit.com › r/learnpython › breakpoints not working in visual studio community 2022
r/learnpython on Reddit: Breakpoints not working in Visual Studio Community 2022
May 22, 2022 -

I'm running the Visual Studio Community 2022 version. I'm attempting to use the debugger on a Python script, but there is an error notification next to my breakpoint which reads as follows:

The breakpoint will not currently be hit. Breakpoint in file excluded by filters

Note: may be excluded because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json)

I navigated to debug > options > general > just my code, and disabled the checkbox next to this. However, the same error message still occurs. Is there a launch.json file somewhere that needs to be edited as well?

EDIT

Here is some sample code that I have attempted to run using Visual Studio:

import os

def change_dirs(new_dir: str) -> str:
    os.chdir(new_dir) 
    return 'Current working directory is ' + new_dir

change_dirs(input('Please enter a directory to change to:\n'))

Here is a link to a screenshot that shows the above code, as well as the error message mentioned before.

And here is a link showing the "Just In Time" settings checkbox disabled. Even after disabling this setting and restarting the computer, the issue still persists.

EDIT 2:

Changed image links since imgur was not working

🌐
Visual Studio Code
code.visualstudio.com › docs › python › debugging
Python debugging in VS Code
November 3, 2021 - Local computer: start the VS Code debugger using the modified Python Debugger: Attach configuration and the Start Debugging button. VS Code should stop on your locally set breakpoints, allowing you to step through the code, examine variables, ...
🌐
Reddit
reddit.com › r/vscode › python debugger not working
r/vscode on Reddit: Python debugger not working
September 23, 2022 - A subreddit for working with Microsoft's Visual Studio Code · Members · Online • · JohnJSal · Hi everyone. I recently started using VS Code and really enjoy it, but I'm confused why the debugger doesn't work for my Python files. I have the Python extension installed, and I figured it would just work by default. Do I need to do more to set it up further? Right now, all that happens is when I set a breakpoint and run the debugger, the program just runs normally and then exits.
🌐
Donjayamanne
donjayamanne.github.io › pythonVSCodeDocs › docs › troubleshooting_debugger
Debugger | Python in Visual Studio Code
Unfortunately there could be a number of reasons why the debugger isn’t working. For instance it is possible VS Code is displaying some errors that could provide a hint. Look at the debugger console for any error messages displayed. Look at the Debugger Tools console output for any errors ...
🌐
GitHub
github.com › microsoft › vscode-python › issues › 12593
Breakpoints not hit. · Issue #12593 · microsoft/vscode-python
June 26, 2020 - Issue Type: Bug I have a simple file parser in python and input text file. When I place a breakpoint at any line in the soure, the break point is not being hit. I set the break point at line pointe...
Author   sachinmyneni
Find elsewhere
🌐
Reddit
reddit.com › r/visualstudio › my breakpoints are being skipped in my visual studio code.
r/VisualStudio on Reddit: My breakpoints are being skipped in my visual studio code.
September 7, 2025 -

I do not know if this is the right flair. I am trying to debug code, but my breakpoints are being skipped. Despite them being set to an unconditional pause with the red circle. But it just keeps going past and skipping to the end of the program. I even deleted and reseted the json file.

🌐
Reddit
reddit.com › r/learnprogramming › breakpoints not working in visual studio community 2022
r/learnprogramming on Reddit: Breakpoints not working in Visual Studio Community 2022
May 22, 2022 -

I'm running the Visual Studio Community 2022 version. I'm attempting to use the debugger on a Python script, but there is an error notification next to my breakpoint which reads as follows:

The breakpoint will not currently be hit. Breakpoint in file excluded by filters

Note: may be excluded because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json)

I navigated to debug > options > general > just my code, and disabled the checkbox next to this. However, the same error message still occurs. Is there a launch.json file somewhere that needs to be edited as well?

EDIT

Here is some sample code that I have attempted to run using Visual Studio:

import os

def change_dirs(new_dir: str) -> str:
    os.chdir(new_dir) 
    return 'Current working directory is ' + new_dir

change_dirs(input('Please enter a directory to change to:\n'))

Here is a link to a screenshot that shows the above code, as well as the error message mentioned before.

And here is a link showing the "Just In Time" settings checkbox disabled. Even after disabling this setting and restarting the computer, the issue still persists.

EDIT 2:

Changed image links since imgur was not working

🌐
Code with Mosh
forum.codewithmosh.com › python
VS code not working for python debugging - Python - Code with Mosh Forum
June 24, 2022 - I’ve been facing issues with using python extension with vs code for some weeks now. The debugging doesnt also work. Any help, please?🥲
🌐
GitHub
github.com › microsoft › vscode-python › issues › 4355
Breakpoints are not hitting in VS Code while debugging Python Flask app · Issue #4355 · microsoft/vscode-python
February 12, 2019 - Environment: VS Code 1.31.0 Python Extension - 2019.1.0 (29 Jan 2019) Python Version 3.7.1 64-bit Flask Version 1.0.2 Windows 10
Author   iamshivprasad
🌐
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

🌐
Developer Community
developercommunity.visualstudio.com › t › Visual-Studio-Python-Tests-Debugger-not › 10545670
Visual Studio Python Tests, Debugger not hitting breakpoints
December 20, 2023 - Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...
🌐
Reddit
reddit.com › r › vscode › comments › nb95x8 › breakpoints_not_working
Breakpoints not working : r/vscode
May 13, 2021 - I click the debug icon in the sidebar, hit "run and debug", the command palate pops up and says select a debug configuration. I click "Python File". Then it just runs the file ignoring my breakpoint. I'm not sure if I set something up incorrectly or what. I do have the python extension installed and I am able to run the python code just fine.