diff --git a/AutoVScodeCEnvironment/Resources/launch.json b/AutoVScodeCEnvironment/Resources/launch.json index 46425bb..7dad1dc 100644 --- a/AutoVScodeCEnvironment/Resources/launch.json +++ b/AutoVScodeCEnvironment/Resources/launch.json @@ -6,13 +6,19 @@ "type": "cppdbg", "request": "launch", "targetArchitecture": "x86", - "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", + "program": "C:\\Windows\\system32\\cmd.exe", + "args": [ + "/C", + "${fileDirname}\\${fileBasenameNoExtension}.exe", + "&", + "pause", + ">nul" + ], "miDebuggerPath": "c:\\MinGW\\bin\\gdb.exe", - "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", "externalConsole": true, "preLaunchTask": "g++" } ] -} \ No newline at end of file +} diff --git a/AutoVScodeCEnvironment/Resources/tasks.json b/AutoVScodeCEnvironment/Resources/tasks.json index f71c05d..cadb01a 100644 --- a/AutoVScodeCEnvironment/Resources/tasks.json +++ b/AutoVScodeCEnvironment/Resources/tasks.json @@ -13,7 +13,7 @@ "args": ["-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe"], "problemMatcher": { "owner": "cpp", - "fileLocation": ["relative", "${workspaceRoot}"], + "fileLocation": ["autoDetect", "${workspaceRoot}"], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, @@ -23,4 +23,4 @@ "message": 5 } } -} \ No newline at end of file +}