- Published on
VS Code tip : Debug external libraries in VS Code
- Authors
- Name
- Ismail Tlemcani
- @Ismailtlem
Do you want to debug an external library you are using in your code ? Just add the following to you launch.json file
"justMyCode": false
Here is an example for a flask app :
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Flask",
"type": "debugpy",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "main.py",
"FLASK_DEBUG": "1"
},
"args": ["run", "--no-debugger", "--no-reload"],
"jinja": true,
"autoStartBrowser": false,
"justMyCode": false
}
]
}