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.
Debuggin on Linux
-
- CodeLite Curious
- Posts: 3
- Joined: Tue Oct 29, 2013 2:13 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuggin on Linux
Can you explain what does it means?skyline75489 wrote: It doesnt' stop input
You can't do that atm. There is already a feature request opened for thisI want a normal terminal on Linux, too.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 3
- Joined: Tue Oct 29, 2013 2:13 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuggin on Linux
I didn't make it clear. My apologies.eranif wrote:Can you explain what does it means?skyline75489 wrote: It doesnt' stop input
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuggin on Linux
Funny you mention this, since I am exchanging emails about this with another person who requested this.skyline75489 wrote:By the way, is LLDB(the debugger of clang) support in the developers' consideration
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.
This was the intention, it was mainly developed to overcome OSX problems with their Terminal application...skyline75489 wrote:This is kind of strange.
However, I find it very useful and handy...
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 3
- Joined: Tue Oct 29, 2013 2:13 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuggin on Linux
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?skyline75489 wrote:This is kind of strange.
- Jarod42
- CodeLite Expert
- Posts: 240
- Joined: Wed Sep 30, 2009 5:54 pm
- Genuine User: Yes
- IDE Question: C++
- Location: France
- Contact:
Re: Debuggin on Linux
a possible work-around would be to use
Code: Select all
myexe < inputfile
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Debuggin on Linux
Why not simply clicking on the pause button in the debugger toolbar inside codelite?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?
It will send SIGINT to the debuggee process and will interrupt it
Eran
Make sure you have read the HOW TO POST thread