User forums > Using Code::Blocks

Can't get breakpoint to work

(1/1)

andrewp:
I just started using codeblocks and I am having trouble getting the debugger to work.
Here is the program  followed by the output when F8 is pressed.  What's wrong?

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello\tI am your computer talking." << endl;  //breakpoint set here!
    return 0;     
}

<<<<this is the output from F8>>>>>

Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 920
Error in re-setting breakpoint 2: Function "C:/C++ Book/BookI/Chapter01/FirstProject/SayHello/main.cpp:8" not defined.

oBFusCATed:
Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
See the notes at the end, I think you're affected by one of them.

andrewp:
I couldn't resolve the problem from that information!

oBFusCATed:
Have you read and tried this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces

Navigation

[0] Message Index

Go to full version