We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I have followed the advices :
https://gist.github.com/AsgerPetersen/9ea79ae4139f4977c31dd6ede2297f90
Install ptvsd from Qgis 3.10 python env : C:\PROGRA~1\QGIS 3.10\apps\Python37>pip install ptvsd==4.1.4
C:\PROGRA~1\QGIS 3.10\apps\Python37>pip install ptvsd==4.1.4
Install debugvs plugin
debugvs
Identify plugin folder : C:\Users\my_user\Documents\git\QgisCadastrePlugin\cadastre
C:\Users\my_user\Documents\git\QgisCadastrePlugin\cadastre
Open this plugin folder with VS Code (right click + open with code)
Select python 3.7 from Qgis
Create new debug launch.json file like that :
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Python: Attacher", "type": "python", "request": "attach", "connect": { "host": "localhost", "port": 5678 }, "pathMappings": [ { "localRoot": "${workspaceFolder}", "remoteRoot": "${workspaceFolder}" } ] } ] }
t_
debug_vs_plugin/__init__.py
Line 80 in 291b9b9
I could check output text info in VScode but no way to stop process on breakpoint.
Thanks.
The text was updated successfully, but these errors were encountered:
The docstring about 'ptvsd.enable_attach' show that function return a tuple.
Please try use in your .vscode/launch.json: { "configurations": [ { "name": "Python: QGIS Debugger", "type": "python", "request": "attach", "host": "localhost", "port": 5678 }, ] }
Sorry, something went wrong.
No branches or pull requests
Hi, I have followed the advices :
https://gist.github.com/AsgerPetersen/9ea79ae4139f4977c31dd6ede2297f90
Install ptvsd from Qgis 3.10 python env :
C:\PROGRA~1\QGIS 3.10\apps\Python37>pip install ptvsd==4.1.4
Install
debugvs
pluginIdentify plugin folder :
C:\Users\my_user\Documents\git\QgisCadastrePlugin\cadastre
Open this plugin folder with VS Code (right click + open with code)
Select python 3.7 from Qgis
![image](https://user-images.githubusercontent.com/16317988/95457250-df2a2380-0970-11eb-9808-01ba1fd9fabe.png)
Create new debug
launch.json
file like that :t_
it works :debug_vs_plugin/__init__.py
Line 80 in 291b9b9
I could check output text info in VScode but no way to stop process on breakpoint.
Thanks.
The text was updated successfully, but these errors were encountered: