Debugging with gdb and dependency on addtitional files
I have C++ code that reads some settings from a configuration file. Without that file my program aborts...
In my build preferences (or .buildconfig) I configured an installation prefix.
And in normal build, my default configuration file gets installed via meson (install_data(['defaultsettings.xml'], install_dir : 'share/bla')
) into a subdirectory (share/bla
) of the installation prefix.
Everything works, I can run my program in the install prefix, the configuration file can be accessed by relative path and the program continues normal operation.
But, running builders preconfigured debug pipeline "Run with Debugger", I have no control on what files are being installed and where.
My projects meson.build
is ignored and the program is getting built in ~/.cache/gnome-builder/projects/.../default-host-master/
. The configuration file is of course missing and my program aborts accordinlgy such that it cannot be debugged.
Is there a way to customize the default debug pipline in my projects' meson.build
(or any other build system) such that additional files will be installed/accessible? Or is there another way to provide additional files during debugging?