Go tests debugging
Asked Answered
H

3

8

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.

Herbertherbicide answered 20/1, 2016 at 0:14 Comment(3)
I've had success using LiteIDE to do this though it gets fairly wonky sometimes. github.com/visualfc/liteideMentor
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
T
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.

Triazine answered 9/10, 2017 at 18:14 Comment(0)
G
3

Currently it's not possible to debug tests, please watch over this issue to see when this will be supported.

Govea answered 20/1, 2016 at 10:23 Comment(0)
R
0

This is now supported. I am able to debug tests in Intellij Idea ultimate.

Rabblerouser answered 20/5 at 14:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.