mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
fix(debugger): echo the Java launch command in the debug console (#2930)
Java Debug launches through java-debug in jdtls, which bypasses the Run process that echoes its command line. Debug now prints the equivalent java … -cp … Main … command after the build and classpath resolution, so Debug and Run output stay comparable. Co-authored-by: kradme <17811095+kradme@users.noreply.github.com>
This commit is contained in:
@@ -139,6 +139,9 @@ export async function javaLaunchConfig(
|
||||
const classPaths = parsed.explicitClasspath
|
||||
? parsed.explicitClasspath.split(info.pathListSeparator)
|
||||
: info.classPaths;
|
||||
// java-debug starts the JVM itself, bypassing the Run process that echoes its
|
||||
// command line. Echo the equivalent launch here so Debug and Run stay comparable.
|
||||
preparation?.report?.(`${joinJavaArgs([resolved.command, ...resolved.args])}\n`);
|
||||
if (kotlin) {
|
||||
return {
|
||||
name: rc.name,
|
||||
|
||||
Reference in New Issue
Block a user