dictation-toolbox / natlink

Natlink provides the interface between Dragon and python
Other
25 stars 17 forks source link

Debugging grammars with pytest issues #155

Open dougransom opened 1 year ago

dougransom commented 1 year ago

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 commented 1 year ago

Succes, Doug!!