Skip to content

Commit e83872a

Browse files
Merge branch 'topic/#1548' into 'master'
Improvements regarding predefined debug configurations See merge request eng/ide/ada_language_server!1843
2 parents 1492ee3 + 77efaa0 commit e83872a

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

integration/vscode/ada/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,13 @@
10211021
"args": [],
10221022
"cwd": "^\"\\${workspaceFolder}\"",
10231023
"stopAtEntry": false,
1024-
"preLaunchTask": "ada: Build current project"
1024+
"externalConsole": false,
1025+
"preLaunchTask": "ada: Build current project",
1026+
"setupCommands": {
1027+
"description": "Enable pretty-printing for gdb",
1028+
"text": "-enable-pretty-printing",
1029+
"ignoreFailures": true
1030+
}
10251031
}
10261032
}
10271033
],

integration/vscode/ada/src/debugConfigProvider.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ export class AdaInitialDebugConfigProvider implements vscode.DebugConfigurationP
298298
* GDB default setup options
299299
*/
300300
const setupCmd = [
301-
{
302-
description: 'Catch all Ada exceptions',
303-
text: 'catch exception',
304-
ignoreFailures: true,
305-
},
306301
{
307302
description: 'Enable pretty-printing for gdb',
308303
text: '-enable-pretty-printing',
@@ -461,5 +456,6 @@ function createAttachConfig(adaMain: AdaMain): AdaConfig {
461456
*/
462457
// preLaunchTask: adaMain ? getBuildTaskName(adaMain) : BUILD_PROJECT_TASK_NAME,
463458
miDebuggerPath: getOrFindGdb(),
459+
setupCommands: setupCmd,
464460
};
465461
}

integration/vscode/ada/test/general/debug.test.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ suite('Dbg Cfgs', function () {
2828
MIMode: 'gdb',
2929
preLaunchTask: 'ada: Build main - src/main1.adb',
3030
setupCommands: [
31-
{
32-
description: 'Catch all Ada exceptions',
33-
text: 'catch exception',
34-
ignoreFailures: true,
35-
},
3631
{
3732
description: 'Enable pretty-printing for gdb',
3833
text: '-enable-pretty-printing',
@@ -48,6 +43,13 @@ suite('Dbg Cfgs', function () {
4843
program: '${workspaceFolder}/obj/main1exec' + exe,
4944
processId: '${command:pickProcess}',
5045
MIMode: 'gdb',
46+
setupCommands: [
47+
{
48+
description: 'Enable pretty-printing for gdb',
49+
text: '-enable-pretty-printing',
50+
ignoreFailures: true,
51+
},
52+
],
5153
miDebuggerPath: getOrFindGdb() ?? '<undefined>',
5254
},
5355
{
@@ -63,11 +65,6 @@ suite('Dbg Cfgs', function () {
6365
MIMode: 'gdb',
6466
preLaunchTask: 'ada: Build main - src/test.adb',
6567
setupCommands: [
66-
{
67-
description: 'Catch all Ada exceptions',
68-
text: 'catch exception',
69-
ignoreFailures: true,
70-
},
7168
{
7269
description: 'Enable pretty-printing for gdb',
7370
text: '-enable-pretty-printing',
@@ -83,6 +80,13 @@ suite('Dbg Cfgs', function () {
8380
program: '${workspaceFolder}/obj/test' + exe,
8481
processId: '${command:pickProcess}',
8582
MIMode: 'gdb',
83+
setupCommands: [
84+
{
85+
description: 'Enable pretty-printing for gdb',
86+
text: '-enable-pretty-printing',
87+
ignoreFailures: true,
88+
},
89+
],
8690
miDebuggerPath: getOrFindGdb() ?? '<undefined>',
8791
},
8892
];

0 commit comments

Comments
 (0)