Page 1 of 1

Problem debugging console app that uses share lib in project

Posted: Mon May 14, 2012 9:28 pm
by daliwong
I had it working before, but now the debugger stopped working. i have a project that has a console exe and a shared lib. i have LD_LIBRARY_PATH exported when bash starts and the app works from the command line. i can't debug it though. oddly enough, I have a test exe that is a console exe that does work??

any thoughts?

Re: Problem debugging console app that uses share lib in project

Posted: Mon May 14, 2012 10:27 pm
by eranif
Try placing the LD_LIBRARY_PATH under:

'Project settings -> Environment' tab

codelite understands only one format:

Code: Select all

LD_LIBRARY_PATH=/new/path:$(LD_LIBRARY_PATH)
The parentheses are important

Eran

Re: Problem debugging console app that uses share lib in project

Posted: Mon May 14, 2012 11:40 pm
by daliwong
thank you :))))

--------------
pls note that relative path did not work

Re: Problem debugging console app that uses share lib in project

Posted: Mon May 14, 2012 11:57 pm
by eranif
daliwong wrote:pls note that relative path did not work
It does work, its just that codelite 'cd' to the executable path or wherever you told it to 'cd' in project settings -> general -> (Program ro Run / Debug) Working Directory

Eran