Problem debugging console app that uses share lib in project

General questions regarding the usage of CodeLite
daliwong
CodeLite Curious
Posts: 4
Joined: Tue May 01, 2012 5:58 pm
Genuine User: Yes
IDE Question: c++
Contact:

Problem debugging console app that uses share lib in project

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
daliwong
CodeLite Curious
Posts: 4
Joined: Tue May 01, 2012 5:58 pm
Genuine User: Yes
IDE Question: c++
Contact:

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

Post by daliwong »

thank you :))))

--------------
pls note that relative path did not work
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Post Reply