Guides

Debugging

Visual Studio Code

  • Install Go language support for VSCode . Make sure to install additonal tools when they pop up, or manually run Go: Install/Update Tools command from the command palette.

  • Add the configuration to your launch.json file. Replace MY_CODE_DIR with the absolute path to your project's .wundergraph directory.

1
2
3
4
5
6
7
8
9
{
"name": "Launch WunderGraph",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/wunderctl/main.go",
"args": ["up", "--debug", "--wundergraph-dir", "MY_CODE_DIR/.wundergraph"],
"envFile": "MY_CODE_DIR/.env",
}
  • Set your breakpoints and run "Launch WunderGraph" from the debug menu.

Was this article helpful to you?
Provide feedback

Edit this page