Skip to content

Commit 19523dc

Browse files
committed
windows vscode debug
1 parent 09cf096 commit 19523dc

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"externalConsole": true,
4141
"avoidWindowsConsoleRedirection": false,
4242
"MIMode": "gdb",
43-
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe"
43+
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
44+
"preLaunchTask": "Make MSYS"
4445
},
4546
{
4647
"name": "g++ - Build (macOS)",

.vscode/tasks.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
"problemMatcher": "$msCompile"
2222
},
2323
{
24-
"label": "MinGW Make Project",
25-
"type": "shell",
26-
"command": "cd ${workspaceFolder};mingw32-make all",
24+
"label": "Make MSYS",
25+
"type": "process",
26+
"command": "C:\\msys64\\usr\\bin\\bash.exe",
27+
"args": [
28+
"msys2compile.sh"
29+
],
2730
"group": {
2831
"kind": "build",
2932
"isDefault": true

msys2compile.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
3+
make mkdir
4+
make all

0 commit comments

Comments
 (0)