I want to debug a Vaadin 8 app, when I launch the Gradle-Task "vaadinRun" the console tells me the debug port:
Application running on http://localhost:8080 (debugger on 8000)
Unfortunately IntelliJ doesn't attach the debugger to the port. But is listening on port 65757?
What works is to attach a remote-debug session to port 8000, but thats odd there must be a simpler way. The question is how?
Is only option to connect new Debug Configuration in IntelliJ for Remote and connect it to port 8000? I do not think you can configure port for Groovy plugin in IntelliJ.
You could change Groovy configuration from 8000 to 65757 but I guess that can change.
Best option for debugging Vaadin app in Intellij is using WAR packaging and deploying app in Tomcat Server.
https://www.jetbrains.com/help/idea/run-debug-configuration-tomcat-server.html
对于那些使用 Maven 而不是 Gradle 的人,即使用./mvnw
启动 Vaadin 应用./mvnw
,您需要设置以下 env var 以激活端口 8000 上的远程调试:
export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.