User forums > Help

Empty watch list in code::blocks

<< < (2/2)

oBFusCATed:
Have you tried a clean build?

p.s. in my previous post I've mistakenly posted "no -g", which is wrong, you need the -g options.

Jenna:
Put your  program in a path without colons (":") in the name.
gdb can not read the pathname correctly.
I tried it on commandline, neither the hint with the single-quotes, nor double-quotes or escaping with backslash works.

So as a quick solution, just use a path without colons in it.

Jenna:

--- Quote from: jens on July 12, 2011, 06:45:16 am ---Put your  program in a path without colons (":") in the name.
gdb can not read the pathname correctly.
I tried it on commandline, neither the hint with the single-quotes, nor double-quotes or escaping with backslash works.

So as a quick solution, just use a path without colons in it.

--- End quote ---
You can also try to use relative paths in compilation, but this might break other debug-sessions.
It should not be harmful in most cases, but it's an option, that is used for compiling all projects with this compiler, so it should be used with care (or at least be kept in mind, that this change has been made, if something goes wrong later).

Uncheck "Settings -> Compiler and debugger... -> Global compiler settings -> [your compiler] -> Other settings -> Advanced options... -> Others -> Use full paths for source files (GDB workaround):" and do a full rebuild.

Jenna:
From our wiki:
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces

evilgeniuz:

--- Quote ---So as a quick solution, just use a path without colons in it.
--- End quote ---

Man, i love you!
That solved the problem!

Navigation

[0] Message Index

[*] Previous page

Go to full version