Running a source command before launching main command

Mahmood Naderan mahmood.nt at gmail.com
Thu Jul 29 14:54:32 BST 2021


OK it seems that "source file.sh && kdevelop" from shell will be fine.
Reference: Stackoverflow

Thanks for the hints.

Regards,
Mahmood




On Thu, Jul 29, 2021 at 12:27 PM René J.V. Bertin <rjvbertin at gmail.com>
wrote:

> On Thursday July 29 2021 11:10:21 Mahmood Naderan wrote:
>
> >So, If I follow that, how can I specify the program's argument list?
> >Because the wrapper takes one argument and that is the program's binary.
>
> I showed how to pass on the arguments in a wrapper script:
>
> BINARY="$1"
> shift
> exec ${BINARY} "$@"
>
> Enter that exactly as written ($@ between double quotes) and your binary
> will see the arguments as if you started it from the command line.
>
> >Meanwhile I will try to see if I can attach gdb from a console with a PID.
>
> You can also attach a debugger (gdb or lldb) to a running process from
> with KDevelop, if you want to use a graphical debugger.
>
> R.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20210729/5cbf364b/attachment.htm>


More information about the KDevelop mailing list