The Intel® Debugger for Linux* is a part of the Intel® C++ Composer XE 2011 for Linux* and Intel® Fortran Composer XE 2011 for Linux*. It is a symbolic source-code application debugger that helps programmers find run-time programming errors. These errors include wrong code, memory leaks, stack overflows, unexpected exceptions or other algorithmic problems. The Intel® Debugger can debug both single and multithreaded applications, serial and parallel code. In its latest version we added improved thread awareness and thread-specific breakpoint handling. The application run-time control supports lockstep stepping following a thread syncpoint, defining thread teams and even forced serialized execution of parts of your threaded application. Also we now provide OpenMP windows with information about current tasks, teams, task waits, barriers, task spawn trees and locks. A SSE Windows that gives you access to SSE registers commonly used for data vectorization and single instruction multiple data (SIMD) handling. It displays vectors as rows (or columns) in a table display. You can change layout the data in those registers to match what the application is using or view the data in any other way you like. Finally the debugger supports STL code.
- Start the Debugger with your executable
> idb ./foo.exe
- You can set breakpoints in your code using the 'break' command (which you enter at the debugger command line). Specify the line number after the break command as follows:
(idb) break 123
- You can run to breakpoints using the 'run' command:
To display the contents of a variable using the 'print command':
(idb) print x (idb) print A(34)
You can also navigate through the source lines using the 'next' and 'step' commands:
(idb) next (idb) step
All debugger options can also be activated using the GUI interface by clicking on the appropriate buttons to select the required option.
You can find more information on IDB commands at the Intel Debugger Reference Guide