|
|
|
There is no `main.go` as simple entrypoint for the debugger, therefore you have to create a custom debugger config.
|
|
|
|
|
|
|
|
This is an example for visual studio code, located at `.vscode/launch.json`.
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Launch",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/gosdn",
|
|
|
|
"env": {},
|
|
|
|
"args": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
``` |
|
|
|
\ No newline at end of file |