Help needed to debug go gin project #71

Closed
opened 2024-03-03 09:46:46 +03:00 by h-tiwari-dev · 3 comments
h-tiwari-dev commented 2024-03-03 09:46:46 +03:00 (Migrated from github.com)

Hi, I need you help to add a configuration to run gin project. I want to run "$ go run ." Is there anyway to run custom commands(like the config we can create in launch.json in vscode).

Sorry for the noob question, I'm new to neovim and any help is really appreciated.

Hi, I need you help to add a configuration to run gin project. I want to run "$ go run ." Is there anyway to run custom commands(like the config we can create in launch.json in vscode). Sorry for the noob question, I'm new to neovim and any help is really appreciated.
Catalyn45 commented 2024-03-11 03:04:08 +03:00 (Migrated from github.com)

Doesn't the debug package configuration work for you? I believe what it does is run go build . then starting the resulting executable, basically what go run . does under the hood.

Doesn't the `debug package` configuration work for you? I believe what it does is run `go build .` then starting the resulting executable, basically what `go run .` does under the hood.
leoluz commented 2024-03-25 04:29:37 +03:00 (Migrated from github.com)

@h-tiwari-dev go run isn't a good way to debug Go code and it doesn't publish the necessary symbols. Prefer using go build whenever possible.

@h-tiwari-dev `go run` isn't a good way to debug Go code and it doesn't publish the necessary symbols. Prefer using `go build` whenever possible.
stale[bot] commented 2024-09-21 12:02:10 +03:00 (Migrated from github.com)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
NeonXP/nvim-dap-go#71
No description provided.