| 1 | { |
| 2 | "version": "0.2.0", |
| 3 | "configurations": [ |
| 4 | { |
| 5 | "name": "Debug LTTng Client", |
| 6 | "type": "cppdbg", |
| 7 | "request": "launch", |
| 8 | "program": "${workspaceFolder}/src/bin/lttng/.libs/lttng", |
| 9 | // Replace with your args |
| 10 | "args": [ |
| 11 | "help" |
| 12 | ], |
| 13 | "stopAtEntry": false, |
| 14 | "cwd": "${workspaceFolder}", |
| 15 | "environment": [], |
| 16 | "externalConsole": false, |
| 17 | "MIMode": "gdb", |
| 18 | "miDebuggerPath": "${workspaceFolder}/.vscode/libtool_gdb_wrapper.sh", |
| 19 | "setupCommands": [ |
| 20 | { |
| 21 | "description": "Enable pretty-printing for gdb", |
| 22 | "text": "-enable-pretty-printing", |
| 23 | "ignoreFailures": true |
| 24 | } |
| 25 | ], |
| 26 | "preLaunchTask": "Build LTTng-tools" |
| 27 | }, |
| 28 | { |
| 29 | "name": "Debug LTTng Session Daemon", |
| 30 | "type": "cppdbg", |
| 31 | "request": "launch", |
| 32 | "program": "${workspaceFolder}/src/bin/lttng-sessiond/.libs/lttng-sessiond", |
| 33 | "args": [], |
| 34 | "stopAtEntry": false, |
| 35 | "cwd": "${workspaceFolder}", |
| 36 | // The session daemon fails to launch if it can't find the session schema description |
| 37 | "environment": [ |
| 38 | { |
| 39 | "name": "LTTNG_SESSION_CONFIG_XSD_PATH", |
| 40 | "value": "${workspaceFolder}/src/common/" |
| 41 | } |
| 42 | ], |
| 43 | "externalConsole": false, |
| 44 | "MIMode": "gdb", |
| 45 | "miDebuggerPath": "${workspaceFolder}/.vscode/libtool_gdb_wrapper.sh", |
| 46 | "setupCommands": [ |
| 47 | { |
| 48 | "description": "Enable pretty-printing for gdb", |
| 49 | "text": "-enable-pretty-printing", |
| 50 | "ignoreFailures": true |
| 51 | } |
| 52 | ], |
| 53 | "preLaunchTask": "Build LTTng-tools" |
| 54 | }, |
| 55 | { |
| 56 | "name": "Debug LTTng Relay Daemon", |
| 57 | "type": "cppdbg", |
| 58 | "request": "launch", |
| 59 | "program": "${workspaceFolder}/src/bin/lttng-relayd/lttng-relayd", |
| 60 | "args": [], |
| 61 | "cwd": "${workspaceFolder}", |
| 62 | "environment": [], |
| 63 | "externalConsole": false, |
| 64 | "MIMode": "gdb", |
| 65 | "miDebuggerPath": "${workspaceFolder}/.vscode/libtool_gdb_wrapper.sh", |
| 66 | "setupCommands": [ |
| 67 | { |
| 68 | "description": "Enable pretty-printing for gdb", |
| 69 | "text": "-enable-pretty-printing", |
| 70 | "ignoreFailures": true |
| 71 | } |
| 72 | ], |
| 73 | "preLaunchTask": "Build LTTng-tools" |
| 74 | }, |
| 75 | ] |
| 76 | } |