Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

it doesnt go in other files not added into workspace when debugging. #1467

Closed
DonJayamanne opened this issue May 24, 2019 · 2 comments
Closed

Comments

@DonJayamanne
Copy link
Contributor

@byehack commented on Fri May 24 2019

in debugging when i want to "jump into" i need to go to the some modules thats are not in my project.

@karthiknadig
Copy link
Member

@byehack We treat files in your workspace as user code and everything outside of it as library code. there are two ways to fix this issue.

  • Option 1 : Add "justMyCode": false in launch.json. This has the side effect that it will now include any loaded python file while stepping.
{
    "name": "Terminal",
    "type": "python",
    "request": "launch",
    "program": "${file}",
    "console": "integratedTerminal",
    "justMyCode": false,
},
  • Option 2: Add rules to include directories and files. with this option you can specifically include the external files or directories. This will continue to exclude any standard library files or paths that you don't include.
{
    "name": "Terminal",
    "type": "python",
    "request": "launch",
    "program": "${file}",
    "console": "integratedTerminal",
    "rules": [
        {"path": "<path to directory/glob pattern>", "include": true}, // To include directory, file, or pattern
        {"path": "<path to directory/glob pattern>", "include": false}, // To exclude directory, file, or pattern
    ],
},

@fabioz
Copy link
Contributor

fabioz commented May 25, 2019

I'm closing this one as this should be expected and the comments from @karthiknadig should solve the issue (please reopen if they don't).

As a note, #1298 is already tracking notifying about that and giving instructions, so, there's not much more to be done in this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants