我尝试从控制台或 IntelliJ IDEA 12 以 Debug模式运行 Grails 2.3.1,但总是收到以下错误:
grails run-app --debug-fork
| Running Grails application
ERROR: transport error 202: bind failed: Address already in use
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
最佳答案
首先,我配置我的 IDEA Debug模式。
对于 grails <2.4
我接下来要做的:
1. grails-debug run-app
它正在打开端口 5005 并等待您的 IDE 连接
2.进入IDEA并点击“bug”按钮
3.您的grails控制台自动运行应用程序
对于 grails 2.4
1.“grails --debug run-app”
2.点击“错误”按钮
关于linux - 从 linux 以 Debug模式运行 Grails 2.3.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19525815/