Author Topic: Debugger refuses to work  (Read 3482 times)

Offline JATothrim

  • Single posting newcomer
  • *
  • Posts: 5
Debugger refuses to work
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Debugger refuses to work
« Reply #1 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 ?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Debugger refuses to work
« Reply #2 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:".

12oclocker

  • Guest
Re: Debugger refuses to work
« Reply #3 on: November 02, 2011, 04:35:56 am »