Page 1 of 1

CodeLite on OSX 10.14.5 LLDB does not stop at breakpoints

Posted: Sat May 25, 2019 6:19 pm
by fcapozzi
Hi all.

Codelite version 12.0.16
iMac OSX 10.14.5
clang-1001.0.46.4
lldb-1001.0.13.3

Simple test hello world program.
Cannot debug. Debugger run program but it never stop at breakpoint
After debugger run all breakpoints are cleared.

Same lldb debugger on Xcode IDE works normally.
May be a codelite bug ?

Tnx for help.
Fabio.

Re: CodeLite on OSX 10.14.5 LLDB does not stop at breakpoints

Posted: Sat May 25, 2019 7:46 pm
by eranif
It works for me. Did you compile your code with debugging symbols?

Re: CodeLite on OSX 10.14.5 LLDB does not stop at breakpoints

Posted: Sat May 25, 2019 7:59 pm
by fcapozzi
it should ....

Compiler option are -g;-O0
-g option is "Produce debugging information"
-O0 option is "Optimize for debugging"

any hints ?

Re: CodeLite on OSX 10.14.5 LLDB does not stop at breakpoints

Posted: Sat May 25, 2019 8:10 pm
by eranif
Are you sure that the debugger selected is LLDB?
You can confirm this from Project Settings->general page->debugging section->debugger

Re: CodeLite on OSX 10.14.5 LLDB does not stop at breakpoints

Posted: Sat May 25, 2019 9:24 pm
by fcapozzi
I'm sure is lldb ... btw if i launch lldb outside code lite
with
$lldb ./HelloWorld
and manually set a breakpoint
"(lldb) breakpoint set --line 5"
and then
"(lldb) run"
process stop as expected at line 5
It seems that when called from within codelite it run but clear all breakpoints before process execution.

F.