User forums > General (but related to Code::Blocks)
Trouble with Code::Blocks debugging
jvmorren:
I am trying to use the debugger on Code::Blocks 13.12 but it is not letting me put information in. Whenever I reach a line with cin, the debugger won't let me input anything. If I press F7 again, a whole series of error messages start to appear.
oBFusCATed:
What are the error messages?
What OS are you using?
jvmorren:
I am using Windows 8.1.
The error messages come up in blue and beige boxes in the bottom right hand corner. The first one says:
"Cannot open file:" and gives an address;
"Cannot open file:" Gives a different address;
I am an absolute beginner, and haven't made any drastic changes to the IDE.
oBFusCATed:
Try a nightly and if the problem happens continues to happen post the full debugger log there.
jvmorren:
Yes, the nightly did not work. Here is the log:
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\
Adding source dir: C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\
Adding file: C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\bin\Debug\Debugginb Bug #1.exe
Changing directory to: C:/Users/Jeremy/DOCUME~1/PROGRA~1/C__~1/DEBUGG~1/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Program Files (x86)\Lenovo\FusionEngine;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\LENOVO\easyplussdk\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/Users/Jeremy/DOCUME~1/PROGRA~1/C__~1/DEBUGG~1/bin/Debug/DEBUGG~1.EXE
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5
Child process PID: 7468
At C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\main.cpp:19
At C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\main.cpp:20
In std::istream::operator>>(double&) () ()
In std::istream& std::istream::_M_extract<double>(double&) () ()
#1 0x004013f5 in main () at C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\main.cpp:20
C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\main.cpp:20:341:beg:0x4013f5
At C:\Users\Jeremy\Documents\Programming\C++\Debugginb Bug #1\main.cpp:20
Cannot open file: ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c
At ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:127
Cannot open file: ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c
At ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:129
Cannot open file: ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c
At ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:132
Cannot open file: ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c
At ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:134
In TlsGetValue@4 () ()
611 ./gthr-default.h: No such file or directory.
#1 0x00416d0a in __gthread_getspecific (__key=1) at ./gthr-default.h:611
In KERNEL32!GetDynamicTimeZoneInformation () (C:\windows\SysWOW64\kernel32.dll)
#1 0x00416d0a in __gthread_getspecific (__key=1) at ./gthr-default.h:611
611 in ./gthr-default.h
In TlsGetValue () (C:\windows\SysWOW64\KernelBase.dll)
#1 0x00416d0a in __gthread_getspecific (__key=1) at ./gthr-default.h:611
611 in ./gthr-default.h
Cannot open file: ./gthr-default.h
At ./gthr-default.h:613
In SetLastError@4 () ()
#1 0x00416d15 in __gthread_getspecific (__key=<optimized out>) at ./gthr-default.h:613
613 in ./gthr-default.h
In KERNEL32!BasepIsProcessAllowed () (C:\windows\SysWOW64\kernel32.dll)
#1 0x00416d15 in __gthread_getspecific (__key=<optimized out>) at ./gthr-default.h:613
613 in ./gthr-default.h
In ?? () ()
In ()
Cannot find bounds of current function
Cannot find bounds of current function
The last line will repeat every time I press F7
Navigation
[0] Message Index
[#] Next page
Go to full version