Skip to content

Commit

Permalink
docs: VSCode debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 27, 2021
1 parent fe6bd3c commit 43bc0ea
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -67,6 +67,32 @@ When you send a PR, make sure that:
* You make the PR on the same branch you based your changes on. If you see commits
that you did not make in your PR, you're doing it wrong.

### Configuring VSCode

### Configuring VSCode

`.vscode/launch.json`:

```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch the hub",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}/..",
"env": {
"MERCURE_PUBLISHER_JWT_KEY": "!ChangeMe!",
"MERCURE_SUBSCRIBER_JWT_KEY": "!ChangeMe!"
},
"args": ["run", "-config", "Caddyfile.dev"]
}
]
}
```

### Finding Deadlocks

To debug potential deadlocks:
Expand Down

0 comments on commit 43bc0ea

Please sign in to comment.