我使用DebugAdapter启动--inspect=6010进程,但无法附加DAP进程。
createDebugAdapterDescriptor(session: vscode.DebugSession, executable: vscode.DebugAdapterExecutable | undefined): vscode.ProviderResult<vscode.DebugAdapterDescriptor> {
executable?.args.push("--max-old-space-size=8192");
if(PremiumFeatures.getInstance().isEnabled()) {
executable?.args.push("--premium");
}
if (process.env.NODE_ENV != "production") {
executable?.args.push('--nolazy');
executable?.args.push("--inspect=6010");
}
executable?.args.push("--storagePath=" + this.storagePath);
executable?.args.push("--extensionPath=" + this.extensionPath);
return executable;
}LSP进程以同样的方式以--inspect=6009启动,我可以附加它。
我想知道为什么这两个过程中的一个可以连接,但另一个不能
发布于 2022-07-27 13:07:29
我们把--inspect=6010放在脚本前面。
node --inspect=6010 index.js
不是:
node index.js --inspect=6010
https://stackoverflow.com/questions/72933933
复制相似问题