I tried to debug with cdb.exe in codeblocks but it doesn't work.
First step:
I have installed Codeblock v5716, visual c++ express 2008, Debugging Tools for Windows 32-bit Version. And set environment variable _NT_SYMBOL_PATH with
SRV*C:\MyLocalSymbols*http://msdl.microsoft.com/download/symbols.
Second step:
I add the path, C:\Program Files\Debugging Tools for Windows (x86), and Codeblocks can find cdb.exe.
Third step:
I create a default Helloworld project and add getchar() after the cout. Select Debug target and build test.exe.
( Because breakpoint does'nt work now for cdb.exe in Codeblocks, I use getchar(). )
Forth step:
[Debug]-->[Start(F8)] and Debugger said "*** WARNING: Unable to verify checksum for test.exe".
There was not any console. It looked like work because cdb.exe and test.exe run in the memory.
If I run it handily in the windows console,
C:\Program Files\Debugging Tools for Windows (x86)>cdb C:\test\bin\Debug\test.exe and use "g" command to
continue, it has the
same problem, no console. After finding the relational argument "-2", I tried to run C:\~>cdb -2 C:\~\test.exe.
The result is different. The console for test.exe is open.
cdb.exe and WinDbg are really not convenient. I like Codeblocks more. How to solve codeblocks has no console and breakpoint is down?