Is there a way to debug tests in Go using an IDE like IntelliJ ? I am using the Go plugin for intelliJ and seems like when providing a debug configuration, the debug button is disabled.
Create a breakpoint by clicking the gutter on the necessary line. Alternatively, click the line where you want to create a breakpoint and press Ctrl+F8 . Click Run | Debug.
It allows you to build, edit, and debug programs. If you use VS Code to run your Go code and have the official Go extension installed on the editor, you can debug your code by pressing F5 or Run and Debug on your computer.
Restart Ctrl+Shift+F5 Whenever you wish to restart debugging a program that has hit a breakpoint, you can use the restart command to start debugging the program from the beginning instead of killing and relaunching the debugger.
The 'go test' command may run tests for different packages in parallel as well, according to the setting of the -p flag (see 'go help build').
It is possible in Gogland: 1.0 Preview, Build EAP 12, 172.3757.46.
This version has an expiration date: November 9, 2017, but there are already newer versions released and they probably have later expiration dates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With