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

Debugging grammars with pytest issues #155

Open
dougransom opened this issue Dec 31, 2022 · 1 comment
Open

Debugging grammars with pytest issues #155

dougransom opened this issue Dec 31, 2022 · 1 comment

Comments

@dougransom
Copy link
Member

in some cases, a pytest module will not load when launched with pytest, but will when launched just with py. In theses cases is is very difficult to debug to see what is going on so that your pytest modules will even load in a pytest runner like vs code or pytest.

In visual studio code, this debug configuration will allow the launch of vs code to debug a module in pytest. You only have to use this in weird circumstances, hopefully never once I document how to avoid the problem in the first place (i'll amend this issue).

    {
        "name": "Python: Pytest",
        "type": "python",
        "request": "launch",
        "module": "pytest",
        "args" : "${file}",
        "justMyCode": true
    }, 
@quintijn
Copy link
Contributor

quintijn commented Jan 4, 2023

Succes, Doug!!

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

No branches or pull requests

2 participants