Select to view content in your preferred language

VSCode debugger settting justMyCode

664
0
03-18-2026 11:25 AM
ChrisCowin_dhs
Regular Contributor

So VSCode has a setting in launch.json to config the debugger and one of the settings is 'justMyCode'. When set to true the idea is that the debugger will stay in your written code and not go into libraries you have imported. This doesn't seem to work for Arcpy and I have to set 1,000 breakpoints and use the next button or click the step into button 1,000,000 times. When the setting is enabled it doesnt go into pandas or os by every single function of arcpy causes it to go into the library code. Does anyone know how to fix this? My launch.json is correct, I'm clicking the right button to use the config for debugging.

I have a 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": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
        }
    ]
}

 

And in settings.json:

{
"python-envs.defaultEnvManager": "ms-python.python:system",
"debugpy.debugJustMyCode": true
}
0 Kudos
0 Replies