Page 1 of 1

Specify a debugger as environment variable.

Posted: Wed Sep 10, 2014 6:20 pm
by marcote
Hello,
I'm working with a multiplatform project.
I use environment variable to specify some parameters, like the compiler command.

For example I have created a generic compiler in wich I have specified the tools executables like
$(CCPREFIX)gcc etc...
This way works for all the build commands,
but I cannot specify the debugger like this.

It's possible in some way?
I'd like to have an environment variable like $(GDB_FULL_PATH) that can change from an environment to another.

Thank you in advance
kind regards
Marco Tessore

Re: Specify a debugger as environment variable.

Posted: Wed Sep 10, 2014 6:52 pm
by eranif
marcote wrote:This way works for all the build commands,
but I cannot specify the debugger like this.
This is beacuse the build commands are going through a Makefile first, which expands your macros "$(CCPREFIX)" before running the tool
while the debugger is executed directly from within codelite and not via makefile.

Please open a feature request for this.
Have you tried using a different approach, like using the build configurations?

Eran