我想用Jetbrain的gogland调试器来调试我的软件应用程序,但gogland运行配置允许设置包或文件运行方案,而不是由revel run myapp
开始的调试过程。如何在gogland调试应用程序?
0
A
回答
1
现在Gogland是Goland
我找到创建调试配置官方manual。我会张贴在这里,如果你不介意的话......
的IntelliJ调试(的Goland)
- 创建项目,在这个例子中我将使用规范“随缘新github.com/myaccount /我的应用程序内”
- ‘随缘运行github.com/myaccount/my-app’生成TMP/main.go - 是的IntelliJ
- 关闭正在运行的服务器
- 创建运行配置,并在需要这个文件“程序参数”添加“-importPath git hub.com \我的帐户\我的应用程序内-srcPath的\ src -runMode开发”
- 点‘文件’的\ src \ github.com \我的账户\我的应用程序内\程序\ tmp目录\ main.go
- 在“在启动之前“添加”运行外部工具“。有:程序:\ BIN \随缘文件(.exe)Paramerets:建立github.com/myaccount/my-app
它适用于Linux的&的Windows
0
AFAIK,Gogland内置调试器是delve。
,我认为你必须尝试运行调试与选项attach
:
Attach to an already running process and begin debugging it. This command will cause Delve to take control of an already running process, and begin a new debug session. When exiting the debug session you will have the option to let the process continue or kill it. Usage: dlv attach pid [flags]
我没有安装gogland了,但我在过去也有类似的问题。
相关问题
- 1. 在Gogland上调试GAE/Go应用程序
- 2. 如何使用Gogland运行/调试beego应用程序(使用语言)
- 3. Gogland启动调试应用程序的速度很慢
- 4. 如何调试MeteorJS Cordova应用程序?
- 5. 如何调试Java应用程序
- 6. 如何调试magento应用程序
- 7. 如何调试iPhone应用程序
- 8. 如何调试gunicorn应用程序?
- 9. 如何调试Nativescript应用程序UI?
- 10. 如何调试foxpo应用程序
- 11. 如何调试jnlp应用程序?
- 12. 如何调试Rhodes应用程序
- 13. 如何调试Titanium应用程序?
- 14. 如何调试nodejs readline应用程序?
- 15. 如何调试grails应用程序
- 16. 如何调试django-piston应用程序?
- 17. 如何调试GNUstep应用程序?
- 18. IBM Worklight - 如何调试应用程序?
- 19. 如何调试崩溃应用程序
- 20. 如何调试silverlight应用程序?
- 21. 如何调试wxpython应用程序?
- 22. 如何调试ASP.NET应用程序
- 23. 如何调试Vue应用程序?
- 24. 如何调试websocket应用程序
- 25. 如何调试java-spark应用程序?
- 26. 如何调试Javascript应用程序?
- 27. 如何调试android应用程序
- 28. 如何调试CgiCC应用程序
- 29. 如何调试PHP应用程序?
- 30. 如何调试cordova Hybrid应用程序
调试进程尚未实现(Gogland EAP 7)。这里有相关的问题,你可以按照获取更新:https://youtrack.jetbrains.com/issue/GO-620 –
感谢您的链接。 – zdebra