<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">OK it seems that "source file.sh && kdevelop" from shell will be fine.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Reference: Stackoverflow</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks for the hints.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 29, 2021 at 12:27 PM 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 Thursday July 29 2021 11:10:21 Mahmood Naderan wrote:<br>
<br>
>So, If I follow that, how can I specify the program's argument list?<br>
>Because the wrapper takes one argument and that is the program's binary.<br>
<br>
I showed how to pass on the arguments in a wrapper script:<br>
<br>
BINARY="$1"<br>
shift<br>
exec ${BINARY} "$@"<br>
<br>
Enter that exactly as written ($@ between double quotes) and your binary will see the arguments as if you started it from the command line.<br>
<br>
>Meanwhile I will try to see if I can attach gdb from a console with a PID.<br>
<br>
You can also attach a debugger (gdb or lldb) to a running process from with KDevelop, if you want to use a graphical debugger.<br>
<br>
R.<br>
</blockquote></div>