User forums > Help

Debugger refuses to work

(1/1)

JATothrim:
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:
--- End code ---

"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?

oBFusCATed:
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 ?

Radek:
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:".

12oclocker:
had the same problem, give this a try....
http://forums.codeblocks.org/index.php/topic,15412.msg103472.html#msg103472

Navigation

[0] Message Index

Go to full version