Running a source command before launching main command

Aleix Pol aleixpol at kde.org
Fri Jul 30 01:51:03 BST 2021


On Wed, Jul 28, 2021 at 11:44 AM Mahmood Naderan <mahmood.nt at gmail.com>
wrote:

> Hi,
> Prior to running the application command, I ran a 'source' command to set
> some variables and preprocessing. I know how to set variables in the launch
> configuration, but I would like to know how to specify that source command
> in the launch configuration where executable, arguments and working
> directory are set.
>

Note that you can set the environment that you run on within the Configure
Launches dialog.

This is useful if you need to run gdb since otherwise you'll end up
debugging your starter script rather than your program.

Good luck!
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20210730/10efdf3a/attachment.htm>


More information about the KDevelop mailing list