Commit 741b3562 by Nicolas Capens Committed by Nicolas Capens

Build before debugging with Visual Studio Code.

Call make before launching a debug session. Also move from the 'build' subdirectory to the 'debug' subdirectory to allow for a separate release build or other configuration. Change-Id: I6db00a5bb0a707ebbf9c160897852526a8bb73e1 Reviewed-on: https://swiftshader-review.googlesource.com/12528Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 0952c7de
{
"version": "0.2.0",
"configurations": [
{
"name": "Gnome",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "make",
"program": "${workspaceRoot}/debug/OGLESIntroducingPVRApi",
"args": ["LD_LIBRARY_PATH=./"],
"stopAtEntry": false,
"cwd": "${workspaceRoot}/debug/",
"environment": [],
"externalConsole": true,
"linux": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"osx": {
"MIMode": "lldb"
},
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
},
{
"name": "Glass",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "make",
"program": "${workspaceRoot}/debug/OGLESGlass",
"args": ["LD_LIBRARY_PATH=./"],
"stopAtEntry": false,
"cwd": "${workspaceRoot}/debug/",
"environment": [],
"externalConsole": true,
"linux": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
"osx": {
"MIMode": "lldb"
},
"windows": {
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
},
{
"name": "SubzeroTest",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/SubzeroTest",
"preLaunchTask": "make",
"program": "${workspaceRoot}/debug/SubzeroTest",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
......@@ -40,7 +110,8 @@
"name": "OGLES2HelloAPI",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/OGLES2HelloAPI",
"preLaunchTask": "make",
"program": "${workspaceRoot}/debug/OGLES2HelloAPI",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
......
......@@ -17,7 +17,7 @@
"showOutput": "always",
"suppressTaskName": true,
"options": {
"cwd": "${workspaceRoot}/build"
"cwd": "${workspaceRoot}/debug"
},
"tasks": [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment