问题
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.
回答1:
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.
回答2:
Currently it's not possible to debug tests, please watch over this issue to see when this will be supported.
来源:https://stackoverflow.com/questions/34889319/go-tests-debugging