vscode fails to launch a session daemon using the libtool wrapper on machines
that don't have lttng installed since the XSD can't be loaded.
Export the MI_XSD_PATH to point to the file in the source tree to allow the
daemon to launch.
Moreover, launching the session daemon fails since it can't find
liblttng-ctl.so.0. Adding the library's .libs to LD_LIBRARY_PATH works around
the issue.
Change-Id: I52929b858917e5a103e067e6861cbdb5172744be
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
{
"name": "LTTNG_SESSION_CONFIG_XSD_PATH",
"value": "${workspaceFolder}/src/common/"
+ },
+ // Assumes the 64-bit consumer was built. Point to the in-tree
+ // binary.
+ {
+ "name": "LTTNG_CONSUMERD64_BIN",
+ "value": "${workspaceFolder}/src/bin/lttng-consumerd/lttng-consumerd"
}
],
"externalConsole": false,
# Wrapper script to setup the environment before invoking gdb
# on the in-tree binaries (under `.libs`)
+CURDIR=$(dirname "$0")/
+export LD_LIBRARY_PATH="$CURDIR/../src/lib/lttng-ctl/.libs:$LD_LIBRARY_PATH"
+
libtool --mode=execute gdb "$@"