Code::Blocks Forums

User forums => Help => Topic started by: JATothrim on October 30, 2011, 07:16:50 pm

Title: Debugger refuses to work
Post by: JATothrim on October 30, 2011, 07:16:50 pm
I have problem with the GDB debbuger and I can't figure out how to solve it: The GDB does not stop at breakpoint or anywhere after I start the session.  :(
In the raw debugger log, its says this when setting a breakpoint:
Code
> break "Z:\<long path to source>\<sourcefile.cpp>:61"
No source file named Z.
Breakpoint 11 ("Z:\<long path to source>\<sourcefile.cpp>:61") pending.
>>>>>>cb_gdb:

"path name is too long, project file has courupted or something", answer is no. I created fresh project, added sources to it and compiled, but still the debugger refuses to work. I moved the project directly at Z:\ to shorten paths but this didin't help. My last guess was that my C::B settings have been courupted. But no, I tested with other user and the problem presist.
And now the weird part: The debugger works fine with any other project.  :?

PS: Have I realy programmed something so cryptic, that even GDB goes crazy about it?
Title: Re: Debugger refuses to work
Post by: oBFusCATed on October 31, 2011, 10:41:43 am
Does it work when you run gdb from the command line?

Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks ?
Title: Re: Debugger refuses to work
Post by: Radek on October 31, 2011, 04:32:25 pm
Which "file named Z" ? This looks like a misunderstanding in reading the command line. Perhaps, because the breakpoint location is also separated by a colon. Try to persuade your CodeBlocks to run your files from the project directory or something similar, not using "drive:"

Sorry, I cannot tell how, I am running Debian so that I have no "Z:".
Title: Re: Debugger refuses to work
Post by: 12oclocker on November 02, 2011, 04:35:56 am
had the same problem, give this a try....
http://forums.codeblocks.org/index.php/topic,15412.msg103472.html#msg103472 (http://forums.codeblocks.org/index.php/topic,15412.msg103472.html#msg103472)