Debuggin on Linux

General questions regarding the usage of CodeLite
skyline75489
CodeLite Curious
Posts: 3
Joined: Tue Oct 29, 2013 2:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

Debuggin on Linux

Post by skyline75489 »

I am using Linux Mint 14. When I try to debug a little program, codelite opens a debug section rather than a normal terminal. This little section is NOT good. It doesnt' stop input. And I can't use Ctrl+D to send EOF. It almost can't work.
I also tried Codelite on Windows 8. However, it opens a norman CMD windows when I try to debug. Anyone can help? I want a normal terminal on Linux, too.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debuggin on Linux

Post by eranif »

skyline75489 wrote: It doesnt' stop input
Can you explain what does it means?
I want a normal terminal on Linux, too.
You can't do that atm. There is already a feature request opened for this

Eran
Make sure you have read the HOW TO POST thread
skyline75489
CodeLite Curious
Posts: 3
Joined: Tue Oct 29, 2013 2:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debuggin on Linux

Post by skyline75489 »

eranif wrote:
skyline75489 wrote: It doesnt' stop input
Can you explain what does it means?
I didn't make it clear. My apologies.
When using Code::Blocks for debugging, you can't directly type in the terminal. Precisely speaking, you can do the typing. But the characters won't show until there is a "scanf("%s",str)" or something. They will first be placed in the keyboard buffer. However in the debugging section of CodeLite, I can do all the typing freely, just like in any text editor. This is kind of strange.

I really like CodeLite. The clang support and clang completion are amazing. It's definitely better than Code::Blocks. If the Debugging problem on Linux is fixed, it will be even better.

By the way, is LLDB(the debugger of clang) support in the developers' consideration? As far as I know, there isn't any IDE supporting LLDB except Apple's Xcode. I don't really know why. But somehow I think clang with LLDB is better than gcc with gdb.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debuggin on Linux

Post by eranif »

skyline75489 wrote:By the way, is LLDB(the debugger of clang) support in the developers' consideration
Funny you mention this, since I am exchanging emails about this with another person who requested this.
LLDB is definitely on the roadmap, since OSX no longer provide gdb (they "stuck" on gdb 6.3.5) and only lldb will be available in the future.
skyline75489 wrote:This is kind of strange.
This was the intention, it was mainly developed to overcome OSX problems with their Terminal application...
However, I find it very useful and handy...

Eran
Make sure you have read the HOW TO POST thread
skyline75489
CodeLite Curious
Posts: 3
Joined: Tue Oct 29, 2013 2:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debuggin on Linux

Post by skyline75489 »

skyline75489 wrote:This is kind of strange.
Well, actually the biggest problem is that I can't send EOF using Ctrl+D. I have to use something like "while(scanf("%d %d",&M.&N) == 2))" (USACO Training, you know). I can't end the while loop, which means I almost can't do debugging. Or perhaps I just didn't find the correct way to do this? Any way out?
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Debuggin on Linux

Post by Jarod42 »

a possible work-around would be to use

Code: Select all

myexe < inputfile
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debuggin on Linux

Post by eranif »

skyline75489 wrote:I can't end the while loop, which means I almost can't do debugging. Or perhaps I just didn't find the correct way to do this? Any way out?
Why not simply clicking on the pause button in the debugger toolbar inside codelite?
It will send SIGINT to the debuggee process and will interrupt it

Eran
Make sure you have read the HOW TO POST thread
Post Reply