Open Gaetanbrl opened 4 years ago
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 }, ] }
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
Create new debug
launch.json
file like that :t_
it works :https://github.com/lmotta/debug_vs_plugin/blob/291b9b9468ca387201d93da42309f8f216cbdecb/__init__.py#L80
I could check output text info in VScode but no way to stop process on breakpoint.
Thanks.