<div dir="ltr"><div class="gmail_default" style="font-size:small">It depends on how gdb is configured. I don't know what it defaults to.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 30, 2021 at 10:46 AM RenĂ© J.V. Bertin <<a href="mailto:rjvbertin@gmail.com">rjvbertin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday July 30 2021 02:51:03 Aleix Pol wrote:<br>
>Note that you can set the environment that you run on within the Configure<br>
>Launches dialog.<br>
<br>
It was my understanding that the PO knew this and had reason to use another approach (the env. variable values could depend on the date, for instance).<br>
<br>
>This is useful if you need to run gdb since otherwise you'll end up<br>
>debugging your starter script rather than your program.<br>
<br>
About that: in reality you'd be debugging the shell interpreter of course. Do you know what happens when an application being debugged replaces itself via an exec call? Does the debugger continue with the new executable?<br>
<br>
R.<br>
</blockquote></div>