| 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 | // Assumes the 64-bit consumer was built. Point to the in-tree |
| 43 | // binary. |
| 44 | { |
| 45 | "name": "LTTNG_CONSUMERD64_BIN", |
| 46 | "value": "${workspaceFolder}/src/bin/lttng-consumerd/lttng-consumerd" |
| 47 | } |
| 48 | ], |
| 49 | "externalConsole": false, |
| 50 | "MIMode": "gdb", |
| 51 | "miDebuggerPath": "${workspaceFolder}/.vscode/libtool_gdb_wrapper.sh", |
| 52 | "setupCommands": [ |
| 53 | { |
| 54 | "description": "Enable pretty-printing for gdb", |
| 55 | "text": "-enable-pretty-printing", |
| 56 | "ignoreFailures": true |
| 57 | } |
| 58 | ], |
| 59 | "preLaunchTask": "Build LTTng-tools" |
| 60 | }, |
| 61 | { |
| 62 | "name": "Debug LTTng Relay Daemon", |
| 63 | "type": "cppdbg", |
| 64 | "request": "launch", |
| 65 | "program": "${workspaceFolder}/src/bin/lttng-relayd/lttng-relayd", |
| 66 | "args": [], |
| 67 | "cwd": "${workspaceFolder}", |
| 68 | "environment": [], |
| 69 | "externalConsole": false, |
| 70 | "MIMode": "gdb", |
| 71 | "miDebuggerPath": "${workspaceFolder}/.vscode/libtool_gdb_wrapper.sh", |
| 72 | "setupCommands": [ |
| 73 | { |
| 74 | "description": "Enable pretty-printing for gdb", |
| 75 | "text": "-enable-pretty-printing", |
| 76 | "ignoreFailures": true |
| 77 | } |
| 78 | ], |
| 79 | "preLaunchTask": "Build LTTng-tools" |
| 80 | }, |
| 81 | ] |
| 82 | } |