diff --git a/src/main/commands/DebugCommand.ts b/src/main/commands/DebugCommand.ts index 14518a5c..563362ca 100644 --- a/src/main/commands/DebugCommand.ts +++ b/src/main/commands/DebugCommand.ts @@ -52,6 +52,8 @@ export default class DebugCommand implements ICommand { this.validateDebugConfig(this.container); + const debugProvider = await this.getDebugProvider(); + if (!param?.command) { const status = await node.getStatus(true); @@ -64,8 +66,6 @@ export default class DebugCommand implements ICommand { } } - const debugProvider = await this.getDebugProvider(); - await waitForSync(node, DEBUG); this.startDebugging(node, debugProvider);