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.
Asked
Active
Viewed 7,513 times
8
-
I've had success using LiteIDE to do this though it gets fairly wonky sometimes. https://github.com/visualfc/liteide – Daniel Williams Jan 20 '16 at 00:29
-
I did try that but found IntelliJ more convenient and thus exploring a way to debug the tests here. LiteIDE is definitely one option. Thanks. – psbits Jan 20 '16 at 00:54
-
The IntelliJ plugin uses Delve as a debugging backend whereas LiteIDE uses GDB. GDB has poor support for Go that's why it produces a bad results. On the other side, Delve is not yet mature and will still have issues of its own. I find Delve to be more stable in general however. – dlsniper Jan 20 '16 at 10:25
2 Answers
4
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.

Ewa
- 553
- 7
- 13
3
Currently it's not possible to debug tests, please watch over this issue to see when this will be supported.

dlsniper
- 7,188
- 1
- 35
- 44