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.
Go tests debugging
Asked Answered
I've had success using LiteIDE to do this though it gets fairly wonky sometimes. github.com/visualfc/liteide –
Mentor
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. –
Herbertherbicide
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. –
Govea
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.
Currently it's not possible to debug tests, please watch over this issue to see when this will be supported.
This is now supported. I am able to debug tests in Intellij Idea ultimate.
© 2022 - 2024 — McMap. All rights reserved.