mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
fix(debugger): show the output of Maven, Gradle and script debugging in the Debug console (#2578)
Debugging a configuration the Run feature starts with a JDWP agent (Maven, Gradle, Spring Boot, Tomcat, scripts set to the Java debugger) attaches the debugger to that process, and its output stayed in the Run tab while the Debug console was empty. The run feature now provides its sessions' output by process (`RunOutputService`), and a debug session attached to one follows it in its Console until the session is closed. Fixes #2494
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
* build tool starts the JVM with a JDWP agent that waits for a debugger
|
||||
* (`spring-boot:run` → `-Dspring-boot.run.jvmArguments`, Surefire →
|
||||
* `-Dmaven.surefire.debug`, Gradle → `--debug-jvm`); when the agent reports
|
||||
* its port, the Java debugger attaches. Output and the test tree stay in the Run tab.
|
||||
* its port, the Java debugger attaches. The test tree stays in the Run tab; the
|
||||
* Debug console shows the output as well.
|
||||
* Maven goals that run the application inside Maven's JVM (`tomcat7:run`, `jetty:run`,
|
||||
* `exec:java`) get the agent through `MAVEN_OPTS`; any other configuration set to the Java
|
||||
* debugger (a script such as `catalina.sh run`) through `JAVA_TOOL_OPTIONS`, which every JVM reads.
|
||||
|
||||
Reference in New Issue
Block a user