Debugging go in vs code
I am new to GO and previously I was using 30 days trial version of GoLand for my office work, there debugging is quite simple, Now the trial version is over and the professional subscription is expensive. I want to switch to VScode for coding and debugging purpose. In our project we have local.env file that contain configuration related to our app, in goLand it was easy to add the configuration file to start debugging. Can anyone help me in debugging the go project.
Error when trying to debug with Go VS Code extension in windows
Im trying to set up the debugger in Visual Studio Code for a Go project on Windows 11, but I’m encountering an issue during the installation of the required extension.
When I open my Go project in VS Code and attempt to start debugging, I receive a recommendation to install the “delve” package, as shown in the image below: