diff --git a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts index 0afae8931..69dea4f4b 100644 --- a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts +++ b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts @@ -34,7 +34,7 @@ class SpringBootDebugConfigProvider implements DebugConfigurationProvider { interface ProcessEvent { type: string; - pid: number; + processId: number; shellProcessId: number } @@ -88,8 +88,8 @@ async function handleCustomDebugEvent(e: VSCode.DebugSessionCustomEvent): Promis } async function getAppPid(e: ProcessEvent): Promise { - if (e.pid) { - return e.pid; + if (e.processId && e.processId > 0) { + return e.processId; } else if (e.shellProcessId) { const processes = await psList(); const appProcess = processes.find(p => p.ppid === e.shellProcessId);