我们如何配置IntelliJ来调试revel应用程序?
在Run/Debug Configurations
,对于File
,Go tool arguments
和Program arguments
来说,什么都不明显。
创建你的项目,对于这个例子,我将使用规范的revel new github.com/myaccount/my-app
revel run github.com/myaccount/my-app
中运行以生成tmp/main.go
- intellij需要此文件Run configuration
。选择Go Build
-importPath github.com\myaccount\my-app
中<your gopath>/bin/revel
(Windows - revel.exe)Paramerets:build github.com/myaccount/my-app
,Working dir <your gopath>/bin
Screenshot示例配置
现在您可以在面板IntelliJ中运行和调试