External Debugger
As Abstra is a Python package, you can use any external debugger that works with Python. This includes popular options like PyCharm, VSCode, and others.
Visual Studio Code
Abstra automatically configures your project directory to enable vscode debugging. This configuration is done by creating a .vscode/launch.json
file in your project directory.
To use the debugger just click on the debug tab and start the Abstra Debugger. To learn more see VSCode docs.
Manual Configuration
If your project does not automatically configure to use the VSCode debugger you can create the .vscode/launch.json
file with the following content:
{
"version": "0.2.0",
"configurations": [
{
"name": "Abstra Debugger",
"type": "debugpy",
"request": "launch",
"module": "abstra.cli",
"console": "integratedTerminal",
"args": ["editor"]
}
]
}