Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: marcus1877 on June 02, 2014, 05:34:29 am
-
Environment: CodeBlocks13.12, Win7, 32bit CS
Compiler: Microsoft Visual C++ 2010
Project Type: Console
Project Path and Name: C:\son
Configuration:Debug
Code:
int main()
{
cout<<"debugging"<<endl; // set a breakpoint here
return 0;
}
Steps:
1. Create a new console(son) project at C:\
2. Check project "Build options". Verify "Selected compiler" is Microsoft Visual C++ 2010 and "Compiler settings" has "Produce debugging symbols" checked
3. Add a breakpoint at "count<<xxxxxxx<<endl;"
4. Verify the configuration is set to "Debug"
5. start project with Debug=>Start/Continue , here I can see "Active debuggers" is set to "GDB/CDB debugger:Default"
code finished running without stopping.
I googled , however no posts help me . Could anyone help me out ??
Below is "Build log"
-------------- Build: Debug in son (compiler: Microsoft Visual C++ 2010)---------------
cl.exe /nologo /W3 /EHsc /Od /Zi /MTd /D_DEBUG /I"C:\Program Files\Microsoft SDKs\Windows\v7.1\include" /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /IC:\Boost\include\boost-1_55\ /c main.cpp /Foobj\Debug\main.obj
main.cpp
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v7.1\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib" /LIBPATH:C:\Boost\lib /out:bin\Debug\son.exe libcmtd.lib libcpmtd.lib obj\Debug\main.obj /DEBUG
LINK : bin\Debug\son.exe not found or not built by the last incremental link; performing full link
Output file is bin\Debug\son.exe with size 461.00 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-
...
5. start project with Debug=>Start/Continue , here I can see "Active debuggers" is set to "GDB/CDB debugger:Default"
...
Show us the debugger log please. Did you use CDB to debug your application?
-
Thanks, Fixed!!!
Actually , CDB is a unknow thing to me. I consided it as default because nowhere talking about CDB in user guide. By now , i've located it at C:\Program Files\Windows Kits\8.0\Debuggers\x86,
then it's done.
...
5. start project with Debug=>Start/Continue , here I can see "Active debuggers" is set to "GDB/CDB debugger:Default"
...
Show us the debugger log please. Did you use CDB to debug your application?