I set a breakpoint , when F8 , it runs to the breakpoint , and I points the variable i ( press control ) , just a tooltip shows " int main:: i" , not the variable value.
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: F:\SampleCode\teststack\
Adding source dir: F:\SampleCode\teststack\
Adding file: F:\SampleCode\teststack\bin\Debug\teststack.exe
Changing directory to: F:/SampleCode/teststack/.
[debug]PATH=.
:\CodeBlocks\MingGW\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\EgisTec BioExcess\;C:\Program Files\Windows Live\Shared;c:\Program Files\EgisTec Port Locker\
:\Program Files\MySQL\MySQL Server 4.1\bin;D:\nasm;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files\Java\jdk1.6.0_26\bin;D:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;D:\Google\google_appengine\
[debug]Command-line: D:\CodeBlocks\MingGW\bin\gdb.exe -nx -fullname -quiet -args F:/SampleCode/teststack/bin/Debug/teststack.exe
[debug]Working dir : F:\SampleCode\teststack
Starting debugger: D:\CodeBlocks\MingGW\bin\gdb.exe -nx -fullname -quiet -args F:/SampleCode/teststack/bin/Debug/teststack.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from F:/SampleCode/teststack/bin/Debug/teststack.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.2
[debug]Copyright (C) 2010 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.2
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set debugevents on
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source D:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory F:/SampleCode/teststack/
[debug]>>>>>>cb_gdb:
[debug]> break "F:/SampleCode/teststack/main.cpp:14"
[debug]Breakpoint 2 at 0x4013e4: file F:\SampleCode\teststack\main.cpp, line 14.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]gdb: windows_init_thread_list
Child process PID: 320
[debug][New Thread 320.0x139c]
[debug]Breakpoint 2, main () at F:\SampleCode\teststack\main.cpp:14
[debug]F:\SampleCode\teststack\main.cpp:14:161:beg:0x4013e4
[debug]>>>>>>cb_gdb:
At F:\SampleCode\teststack\main.cpp:14
[debug]> set debugevents off
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0 main () at F:\SampleCode\teststack\main.cpp:14
[debug]>>>>>>cb_gdb:
[debug]> quit