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))