Enable Debugpy - Visual Studio Python debug server
This skill adds Debugpy - Visual Studio Python debug server to make it posible to debug running skills. It is made as a companion to the THEIA IDE skill to enable debugging from there. But if you use another IDE like VS Code you can use this skill to inject the debug adaptor in the mycroft.skills service and attach to it on port 5678.
When you activate debugging by saying "Run debug adaptor" the skill will change Settings for padatious single_thread = true so skills service runs in single thread.
THEIA IDE is already setup so you just have to start debug from debug menu
When finish debugging say "End debug adaptor" and skill restore single_thread settings and restart mycroft.skills service
https://github.com/Microsoft/ptvsd
To use the debug adaptor from THEIA IDE or VS Code make sure ou use Python remote attach setting in launch.json
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost",
}
- Start (remote|ptvsd|debugpy|) debug adaptor
- Enable (remote|ptvsd|debugpy|) debug adaptor
- Run (remote|ptvsd|debugpy|) debug adaptor
- Stop (remote|ptvsd|debugpy|) debug adaptor
- Exit (remote|ptvsd|debugpy|) debug adaptor
- End (remote|ptvsd|debugpy|) debug adaptor
Andreas Lorensen (@andlo)
Productivity
#VSCode #Code #debug #debugging #THEIA #ptvsd #IDE