Skip to content

Commit

Permalink
Update readme file to include launch.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
smanga24 committed Nov 29, 2024
1 parent 3de44f7 commit 2269c07
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,33 @@ Project documentation is available [here](https://uktrade.github.io/digital-work

# Setup DebugPy

Add environment variable in your .evn file
Add environment variable in your .env file

ENABLE_DEBUGPY=True

Enable port for debugpy in docker compose file

ports:
- "5678:5678"

Create launch.json file inside .vscode directory

{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Remote Attach (DebugPy)",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/app/"
}
],
"justMyCode": true
},
]
}

0 comments on commit 2269c07

Please sign in to comment.