COP4331 Debugger

Uploaded from authorPOINTLite
Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Introduction to Runtime Debugging Using the Visual C++ IDE: 

Introduction to Runtime Debugging Using the Visual C++ IDE COP 4331: OO Processes for SW Development © Dr. David A. Workman Mike Barnoske School of EE and Computer Science Last Updated : September 13, 2007

Introduction to Visual C++: 

Introduction to Visual C++ Recent Releases Current Versions

Visual C++ 2005 Express Edition Layout: 

Visual C++ 2005 Express Edition Layout

Visual C++ 2005 Express Edition Layout: 

Visual C++ 2005 Express Edition Layout Solution / Project Browser Class Browser Editor Output Window Call Browser Debug Windows

Files Used By Visual C++: 

Files Used By Visual C++

Slide6: 

Debug Information 1 : // main.cpp 2 : 3 : #include <iostream> 4 : using namespace std; 5 : 6 : int f( int v ) 7 : { 8 : if (v == 0) 9 : return 1; 10 : return v * f( v – 1 ); 11 : } 12 : 13 : int main( void ) 14 : { 15 : int a = 3; 16 : cout << f( a ) << endl; 17 : return 0; 18 : } 19 : main.cpp Function int main 0x00001000 Param none Local a Type int Address 0x00001000 Source File main.cpp Line 14 0x00001000 Line 15 0x00001004 Line 16 0x00001010 Line 17 0x0000104C Function int f 0x00001100 Param v Type int Address 0x00001100 Source File main.cpp Line 7 0x00001100 Line 8 0x00001104 Line 9 0x00001108 Line 10 0x00001118 factorial.pdb . . . 0x1000 : 00 00 00 00 0x1004 : AB CD EF 01 0x1008 : 23 45 67 89 0x100C : AB CD EF 01 0x1010 : 23 45 67 89 0x1014 : AB CD EF 01 . . . 0x104C : 45 67 89 AB . . . 0x1100 : 00 00 00 00 0x1104 : CC DD EE FF 0x1108 : 22 33 44 55 0x110C : 66 77 88 11 0x1110 : AB CD EF AB 0x1114 : BC AB 9A 89 0x1118 : 11 22 34 56 . . . factorial.exe

Hotkeys for Visual C++ Debugging: 

Hotkeys for Visual C++ Debugging

Web Resources for Visual C++ Debugging: 

Web Resources for Visual C++ Debugging Video Tutorial : Getting Started with Visual C++ 2005 Express Edition http://msdn2.microsoft.com/en-us/visualc/bb530677.aspx MSDN (Debugging in Visual Studio) http://msdn2.microsoft.com/enus/library/sc65sadd(VS.80).aspx Debug Info http://www.debuginfo.com/articles/gendebuginfo.html