Created
November 3, 2016 19:01
-
-
Save jhasse/a3898302e4f8be682d053dd5e3b4b62a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// launch.json | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "example", | |
"type": "cppdbg", | |
"request": "launch", | |
"miDebuggerPath": "/usr/bin/gdb", | |
"targetArchitecture": "x64", | |
"program": "${workspaceRoot}/build/example", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceRoot}/build/", | |
"environment": [], | |
"windows": { | |
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe" | |
}, | |
"linux": { | |
"MIMode": "gdb", | |
"setupCommands": [ | |
{ "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true } | |
], | |
"launchOptionType": "Local" | |
} | |
} | |
] | |
} | |
// task.json | |
{ | |
"version": "0.1.0", | |
"windows": { | |
"command": "C:\\msys64\\usr\\bin\\bash" | |
}, | |
"linux": { | |
"command": "/bin/bash" | |
}, | |
"args": ["-lc", "cd \"\"${workspaceRoot}\"\" && waf $0 && $@"], | |
"isShellCommand": true, | |
"showOutput": "always", | |
"options": { | |
"env": { | |
"LANG": "C.UTF-8", | |
"PYTHONUNBUFFERD": "1", | |
"MSYSTEM": "MINGW64" | |
} | |
}, | |
"tasks": [ | |
{ | |
"taskName": "build", | |
"isBuildCommand": true, | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": ["relative", "${workspaceRoot}/build/"], | |
"pattern": { | |
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error|fatal error):\\s+(.*)$", | |
"file": 1, | |
"line": 2, | |
"column": 3, | |
"severity": 4, | |
"message": 5 | |
} | |
} | |
}, | |
{ | |
"taskName": "test", | |
"args": ["./build/unittest"], | |
"isTestCommand": true, | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": ["relative", "${workspaceRoot}/build/"], | |
"pattern": { | |
"regexp": "^(.*?)[:\\(](\\d+)(:(\\d+))?\\)?:\\s+(warning|error|fatal error):\\s+(.*)$", | |
"file": 1, | |
"line": 2, | |
"column": 4, | |
"severity": 5, | |
"message": 6 | |
} | |
} | |
}, | |
{ | |
"taskName": "configure" | |
}, | |
{ | |
"taskName": "clean" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment