Re: Running a source command before launching main command
Aleix Pol <[email protected]> Fri, 30 Jul 2021 02:51:03 +0200
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <CACcA1Rq4MQ_KDDtPRgka5hH4sBQT-3n-qt35f4P-Uyu9eZQ4FQ@mail.gmail.com> |
--000000000000cbea7c05c84c9df2 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 28, 2021 at 11:44 AM Mahmood Naderan <[email protected]> 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 --000000000000cbea7c05c84c9df2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">On Wed, Jul 28, 2021 at 11:44 AM Mahmood Naderan <<a href=3D"= mailto:[email protected]">[email protected]</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div styl= e=3D"font-family:tahoma,sans-serif">Hi,</div><div style=3D"font-family:taho= ma,sans-serif">Prior to running the application command, I ran a 'sourc= e' command to set some variables and preprocessing. I know how to set v= ariables in the launch configuration, but I would like to know how to speci= fy that source command in the launch configuration where executable, argume= nts and working directory are set.</div></div></blockquote><div><br></div><= div style=3D"font-size:small" class=3D"gmail_default">Note that you can set= the environment that you run on within the Configure Launches dialog.</div= ><div style=3D"font-size:small" class=3D"gmail_default"><br></div><div styl= e=3D"font-size:small" class=3D"gmail_default">This is useful if you need to= run gdb since otherwise you'll end up debugging your starter script ra= ther than your program.</div><div style=3D"font-size:small" class=3D"gmail_= default"><br></div><div style=3D"font-size:small" class=3D"gmail_default">G= ood luck!</div><div style=3D"font-size:small" class=3D"gmail_default">Aleix= <br></div></div></div> --000000000000cbea7c05c84c9df2--