Skip to content

Commit

Permalink
docs(contributing): add local vscode config for backend debugging (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
cemremengu authored Apr 7, 2023
1 parent 749c4fd commit c5f9368
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,39 @@ npm run cypress open

### Debugging Server App

#### Local

For debugging locally using VSCode, you can configure a launch configuration file .vscode/launch.json such as

```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "superset",
"FLASK_ENV": "development"
},
"args": [
"run",
"-p 8088",
"--with-threads",
"--reload",
"--debugger"
],
"jinja": true,
"justMyCode": true
}
]
}
```

#### Docker

Follow these instructions to debug the Flask app running inside a docker container.

First add the following to the ./docker-compose.yaml file
Expand Down Expand Up @@ -970,7 +1003,7 @@ tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN

You are now ready to attach a debugger to the process. Using VSCode you can configure a launch configuration file .vscode/launch.json like so.

```
```json
{
"version": "0.2.0",
"configurations": [
Expand Down

0 comments on commit c5f9368

Please sign in to comment.