Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Wiki
Debugging
Changes
Page history
New page
Templates
Clone repository
Create Debugging
authored
3 years ago
by
Andre Sterba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Debugging.md
+20
-0
20 additions, 0 deletions
Debugging.md
with
20 additions
and
0 deletions
Debugging.md
0 → 100644
View page @
59fd9c4e
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
This diff is collapsed.
Click to expand it.