Skip to content

Commit 0397061

Browse files
authored
Merge pull request #328 from Achal1607/fix-debugger
Fixed broken debugger attach UI options
2 parents 648105e + e581187 commit 0397061

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

vscode/src/commands/commands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export const extCommands = {
4646
startupCondition: appendPrefixToCommand('startup.condition'),
4747
nbEventListener: appendPrefixToCommand('addEventListener'),
4848
selectEditorProjs: appendPrefixToCommand('select.editor.projects'),
49-
attachDebugger: appendPrefixToCommand("java.attachDebugger.connector"),
49+
attachDebuggerConnector: appendPrefixToCommand("java.attachDebugger.connector"),
50+
attachDebuggerConfigurations: appendPrefixToCommand("java.attachDebugger.configurations"),
5051
loadWorkspaceTests: appendPrefixToCommand("load.workspace.tests"),
5152
projectDeleteEntry: appendPrefixToCommand("foundProjects.deleteEntry")
5253
}

vscode/src/debugger/debugger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
151151
return [];
152152
}
153153
let result: vscode.DebugConfiguration[] = [];
154-
const attachConnectors: DebugConnector[] | null | undefined = await vscode.commands.executeCommand(extCommands.attachDebugger);
154+
const attachConnectors: DebugConnector[] | null | undefined = await vscode.commands.executeCommand(extCommands.attachDebuggerConfigurations);
155155
if (attachConnectors) {
156156
for (let ac of attachConnectors) {
157157
const debugConfig: vscode.DebugConfiguration = {
@@ -163,7 +163,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
163163
let defaultValue: string = ac.defaultValues[i];
164164
if (!defaultValue.startsWith("${command:")) {
165165
// Create a command that asks for the argument value:
166-
let cmd: string = `${extCommands.attachDebugger}.${ac.id}.${ac.arguments[i]}`;
166+
let cmd: string = `${extCommands.attachDebuggerConnector}.${ac.id}.${ac.arguments[i]}`;
167167
debugConfig[ac.arguments[i]] = "${command:" + cmd + "}";
168168
if (!commandValues.has(cmd)) {
169169
commandValues.set(cmd, ac.defaultValues[i]);

0 commit comments

Comments
 (0)