Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to disable justMyCode in unittest debug #7083

Closed
chen19901225 opened this issue Aug 23, 2019 · 6 comments
Closed

how to disable justMyCode in unittest debug #7083

chen19901225 opened this issue Aug 23, 2019 · 6 comments
Assignees
Labels
area-debugging info-needed Issue requires more information from poster

Comments

@chen19901225
Copy link

I search it , and i cannot find solution

@chen19901225 chen19901225 added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Aug 23, 2019
@ericsnowcurrently ericsnowcurrently self-assigned this Aug 26, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Aug 26, 2019
@ericsnowcurrently
Copy link
Member

Make sure to use the justMyCode setting in your debug config (in your launch.json). Set it to false.

@ericsnowcurrently ericsnowcurrently added area-debugging info-needed Issue requires more information from poster and removed feature-request Request for new features or functionality labels Aug 26, 2019
@ericsnowcurrently
Copy link
Member

If that does not help, please let us know.

@chocoelho
Copy link

@ericsnowcurrently I put just my code into every entry of my launch.json but still didn't work :(

for reference:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python: Remote Attach",
            "type": "python",
            "request": "attach",
            "port": 5678,
            "host": "localhost",
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "."
                }
            ],
            "justMyCode": false
        },
        {
            "name": "Python: Module",
            "type": "python",
            "request": "launch",
            "module": "enter-your-module-name-here",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python: Django",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/manage.py",
            "console": "integratedTerminal",
            "args": [
                "runserver",
                "--noreload",
                "--nothreading"
            ],
            "django": true,
            "justMyCode": false
        },
        {
            "name": "Python: Flask",
            "type": "python",
            "request": "launch",
            "module": "flask",
            "env": {
                "FLASK_APP": "app.py"
            },
            "args": [
                "run",
                "--no-debugger",
                "--no-reload"
            ],
            "jinja": true,
            "justMyCode": false
        },
        {
            "name": "Python: Current File (External Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "externalTerminal",
            "justMyCode": false
        }
    ]
}

@ericsnowcurrently ericsnowcurrently removed the info-needed Issue requires more information from poster label Aug 28, 2019
@ericsnowcurrently
Copy link
Member

Here are some related questions then:

  • what version of the extension are you using?
  • what debug configuration are you using?

Also, you are missing the information we ask for in the issue template. There's a limit to how much help we can provide without that information. So it may be better if you create a new issue and fill in the issue template.

@ericsnowcurrently ericsnowcurrently added the info-needed Issue requires more information from poster label Aug 29, 2019
@DonJayamanne
Copy link

DonJayamanne commented Aug 29, 2019

@ericsnowcurrently

FYI - Please see #332 (comment)

We need to add a debug configuration with request=test.
There's an issue to ensure this is documented on VSCode docs.

Similar issue was filled and closed recently, see here #7131 (comment)

@chocoelho
Copy link

@DonJayamanne #7131 (comment) solved for me, thanks a lot.

@ghost ghost removed the triage label Aug 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants