question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`justMyCode` not working when used in VSCode settings

See original GitHub issue

Environment data

  • VS Code version: 1.55.2
  • OS and version: Mac Os 11.2.3
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): Docker
  • Value of the python.languageServer setting: ms-python.python

Expected behaviour

When specifying the following configuration object directly in the VSCode settings’ .launch.configurations, justMyCode should just work (just like when it is added in the context of the classic launch.json file):

            {
                "args": [
                    "runserver",
                    "localhost:8001"
                ],
                "console": "internalConsole",
                "django": true,
                "justMyCode": false,
                "name": "Django",
                "program": "${workspaceFolder}/manage.py",
                "request": "launch",
                "type": "python"
            }

Actual behaviour

justMyCode is completely ignored.

Steps to reproduce:

  1. Add the above snippet to the settings’ .launch.configurations
  2. Open a dockerized Python project and add a breakpoint inside a third-party package.
  3. Try to step into the package code.
  4. Ascertain that the effort is unsuccessful.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
niccolomineocommented, May 4, 2021

Just chiming in again to say I don’t seem to have this problem with Pylance.

0reactions
kimadelinecommented, May 4, 2021

Closing since this is happening with MPLS and not with Pylance, and that our team’s development efforts have shifted to support the the latter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"justMyCode" does not enable standard library debugging
vscode ; Create simple test file as seen above. Set breakpoint on line; Use Debug Test option right above test method to run...
Read more >
Property justMyCode is not allowed (trying to debug python ...
First, I tried using the python debugger, and put in some breakpoints. But then when I ran the program, it wouldn't stop at...
Read more >
"Just My Code" not working for TypeScript/JavaScript Debugging
After playing with settings for a bit, I found I could get the debugger to break by checking all options under “JavaScript (Chrome)...
Read more >
How to Make the Most of Your Python Debugger in VSCode
To enable debugging non-user-written code, set justMyCode to False inside the configurations described in launch.json . launch.json. Now try restarting the ...
Read more >
Debug user code with Just My Code - Visual Studio (Windows)
To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found