Skip to content

Commit 12a9309

Browse files
committed
Fixed windows-specific debugging configurations
Issues regarding the debug launch configuration type that were platform dependent, and couldn't be overridden. resolved by adding win-specific meson config and fixing task grouping.
1 parent 1e6095f commit 12a9309

File tree

1 file changed

+72
-44
lines changed

1 file changed

+72
-44
lines changed

.vscode/launch.json

Lines changed: 72 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "meson Launch (Release)",
8+
"name": "meson Launch",
99
"type": "cppdbg",
1010
"osx": {
1111
"MIMode": "lldb"
@@ -16,14 +16,7 @@
1616
"preLaunchTask": "meson Build Release",
1717
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
1818
"presentation": {
19-
"group": "meson",
20-
"order": 1
21-
},
22-
"windows": {
23-
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.exe",
24-
"presentation": {
25-
"hidden": true
26-
}
19+
"group": "unix",
2720
}
2821
},
2922
{
@@ -38,19 +31,12 @@
3831
"preLaunchTask": "meson Build Debug (Release)",
3932
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
4033
"presentation": {
41-
"group": "meson",
42-
"order": 2
43-
},
44-
"windows": {
45-
"presentation": {
46-
"hidden": true
47-
},
48-
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.release.exe"
34+
"group": "unix",
4935
}
5036
},
5137
{
5238
"name": "meson Debug (Minimal)",
53-
"type": "cppvsdbg",
39+
"type": "cppdbg",
5440
"osx": {
5541
"MIMode": "lldb"
5642
},
@@ -60,14 +46,7 @@
6046
"preLaunchTask": "meson Build Debug (Minimal)",
6147
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
6248
"presentation": {
63-
"group": "meson",
64-
"order": 3
65-
},
66-
"windows": {
67-
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.minimal.exe",
68-
"presentation": {
69-
"hidden": true
70-
}
49+
"group": "unix",
7150
}
7251
},
7352
{
@@ -82,26 +61,26 @@
8261
"preLaunchTask": "meson Build Debug (Full)",
8362
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
8463
"presentation": {
85-
"group": "meson",
86-
"order": 4
87-
},
88-
"windows": {
89-
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.full.exe",
90-
"presentation": {
91-
"hidden": true
92-
}
64+
"group": "unix",
9365
}
9466
},
67+
68+
69+
70+
71+
72+
73+
74+
9575
{
96-
"name": "msbuild Launch (Release)",
76+
"name": "msbuild Launch",
9777
"type": "cppvsdbg",
9878
"request": "launch",
9979
"program": "${workspaceFolder}/../Cortex-Command-Community-Project-Data/Cortex Command.exe",
10080
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
10181
"preLaunchTask": "msbuild (Final)",
10282
"presentation": {
103-
"group": "msbuild",
104-
"order": 1
83+
"group": "windows",
10584
}
10685
},
10786
{
@@ -112,8 +91,7 @@
11291
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
11392
"preLaunchTask": "msbuild (Debug Release)",
11493
"presentation": {
115-
"group": "msbuild",
116-
"order": 2
94+
"group": "windows",
11795
}
11896
},
11997
{
@@ -124,8 +102,7 @@
124102
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
125103
"preLaunchTask": "msbuild (Debug Minimal)",
126104
"presentation": {
127-
"group": "msbuild",
128-
"order": 3
105+
"group": "windows",
129106
}
130107
},
131108
{
@@ -136,9 +113,60 @@
136113
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
137114
"preLaunchTask": "msbuild (Debug Full)",
138115
"presentation": {
139-
"group": "msbuild",
140-
"order": 4
116+
"group": "windows",
141117
}
142-
}
118+
},
119+
120+
121+
{
122+
"name": "meson Launch [Windows]",
123+
"type": "cppvsdbg",
124+
"request": "launch",
125+
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.exe",
126+
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
127+
"preLaunchTask": "meson Build Release",
128+
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
129+
"presentation": {
130+
"group": "windows",
131+
},
132+
},
133+
{
134+
"name": "meson Debug (Release) [Windows]",
135+
"type": "cppvsdbg",
136+
"request": "launch",
137+
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.release.exe",
138+
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
139+
"preLaunchTask": "meson Build Debug (Release)",
140+
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
141+
"presentation": {
142+
"group": "windows",
143+
}
144+
},
145+
{
146+
"name": "meson Debug (Minimal) [Windows]",
147+
"type": "cppvsdbg",
148+
"request": "launch",
149+
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.minimal.exe",
150+
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
151+
"preLaunchTask": "meson Build Debug (Minimal)",
152+
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
153+
"presentation": {
154+
"group": "windows",
155+
}
156+
},
157+
{
158+
"name": "meson Debug (Full) [Windows]",
159+
"type": "cppvsdbg",
160+
"request": "launch",
161+
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/Cortex Command.debug.full.exe",
162+
"cwd": "${workspaceFolder}/../Cortex-Command-Community-Project-Data",
163+
"preLaunchTask": "meson Build Debug (Full)",
164+
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
165+
"presentation": {
166+
"group": "windows",
167+
}
168+
},
169+
170+
143171
]
144172
}

0 commit comments

Comments
 (0)