Created
December 25, 2018 06:35
-
-
Save YihaoPeng/c2d1be3b8c4e569a4cefb346493ec68b to your computer and use it in GitHub Desktop.
IntelliSense and Debug with VSCode and WSL
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
{ | |
"configurations": [ | |
{ | |
"name": "WSL", | |
"intelliSenseMode": "gcc-x64", | |
"compilerPath": "/usr/bin/gcc", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/include", | |
"/usr/local/include", | |
"c:/work/bitcoin-0.16.0/src" | |
], | |
"defines": [], | |
"cStandard": "c11", | |
"cppStandard": "c++17" | |
} | |
], | |
"version": 4 | |
} |
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
{ | |
// 使用 IntelliSense 了解相关属性。 | |
// 悬停以查看现有属性的描述。 | |
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "C++ Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "/work/btcpool.deveth/build/sserver", | |
"args": ["-c","sserver.cfg", "2>&1"], | |
"stopAtEntry": false, | |
"cwd": "/work/btcpool.deveth/build", | |
"environment": [], | |
"externalConsole": false, | |
"filterStderr": true, | |
"filterStdout": true, | |
"windows": { | |
"MIMode": "gdb", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": false | |
} | |
] | |
}, | |
"pipeTransport": { | |
"pipeCwd": "", | |
"pipeProgram": "ubuntu.exe", | |
"pipeArgs": ["run"], | |
"debuggerPath": "/usr/local/bin/gdb" | |
}, | |
"sourceFileMap": { | |
"/mnt/c/": "c:\\", | |
"/c/": "c:\\", | |
"/work/": "c:\\work\\", | |
"/": "c:\\Users\\hu60\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState\\rootfs\\" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment