Skip to content

Commit

Permalink
Update launch.json example to support library debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
  • Loading branch information
esune committed Oct 12, 2023
1 parent f4db88b commit c56143a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ After all these steps have been completed, you should be able to authenticate wi

To connect a debugger to the `vc-authn` controller service, start the project using `DEBUGGER=true ./manage start` and then launch the debugger, it should connect automatically to the container.

This is a sample debugger launch configuration for VSCode that can be used by adding it to `launch.json`:
This is a sample debugger launch configuration for VSCode that can be used by adding it to `launch.json`, it assumes a `.venv` folder containing the virtual environment was created in the repository root:
```json
{
"version": "0.1.0",
"version": "0.1.1",
"configurations": [
{
"name": "Python: Debug VC-AuthN Controller",
Expand All @@ -137,8 +137,13 @@ This is a sample debugger launch configuration for VSCode that can be used by ad
{
"localRoot": "${workspaceFolder}/oidc-controller",
"remoteRoot": "/app"
},
{
"localRoot": "${workspaceFolder}/.venv/Lib/site-packages",
"remoteRoot": "/usr/local/lib/python3.11/site-packages"
}
]
],
"justMyCode": false
}
]
}
Expand Down

0 comments on commit c56143a

Please sign in to comment.