Skip to content

debupy ignores justMyCode == False when used in listen mode #617

Closed
@TommasoBendinelli

Description

@TommasoBendinelli

I have set up .vscode/launch.json as this:

{
    // 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": false,
        },
        {
                    "name": "Attach",
                    "type": "debugpy",
                    "request": "attach",
                    "pathMappings": [
                        {
                            "localRoot": "${workspaceFolder}",
                            "remoteRoot": "."
                        },
                        {
                            "localRoot": "/home/tommaso/repos/myrepo/xxx/lib/python3.11/site-packages",
                            "remoteRoot": "/home/tommaso/repos/myrepo/xxx/lib/python3.11/site-packages"
                        }
                    ],
                    "connect": {
                        "port": 55678
                    },
                    "subProcess": true,
                    "justMyCode": false,
                }]

}

Furthermore I have also set up settings.json as this:
{
"jupyter.debugJustMyCode": false,
"debug.disassemblyView.showSourceCode": true,
"debugpy.debugJustMyCode": false
}

Environment data

Actual behavior

Frame skipped from debugging during step-in.
Note: may have been skipped because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json).

Expected behavior

I should be able to step in library code.
def main():
import debugpy
debugpy.listen(("localhost", 55678))

# LibraryCode you want to step in

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions