Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugging instructions #75

Closed
wants to merge 1 commit into from
Closed

Conversation

jpkrohling
Copy link
Collaborator

Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@jpkrohling jpkrohling requested review from mar4uk and kovrus May 17, 2023 16:16
@jpkrohling jpkrohling marked this pull request as draft May 18, 2023 11:58
kubectl port-forward -n cortex-dev-01 svc/cortex-gw-internal 8082:80
```

Finally, generate a `go.work` file, if you haven't yet:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the go.work file needed to debug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question, I'll add an explanation there in the doc, but basically, it can be used to hint VS Code that there are multiple modules in the tree. I think GoLand is smarter and doesn't need it, but VS Code marks code as in error when submodules are used in the same tree, unless there's a go.work.

@jpkrohling jpkrohling closed this Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants