Skip to content

Error with ptvsd #5

@Gaetanbrl

Description

@Gaetanbrl

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 plugin

  • Identify 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

  • Create new debug launch.json file like that :

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Attacher",
            "type": "python",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "${workspaceFolder}"
                }
            ]
        }
    ]
}

  • I open QGIS and activate Cadastre plugin. Click the debugvs button ang i get this error :

image

  • When i modify debugvs plugin and remove 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions