Debug windows in visual studio

24
DEBUG WINDOWS IN VISUAL STUDIO Larry Nung

Transcript of Debug windows in visual studio

Page 1: Debug windows in visual studio

DEBUG WINDOWS IN VISUAL STUDIO

Larry Nung

Page 2: Debug windows in visual studio

AGENDA

Where to find out debug windows

Debug windowsOutput Window

Immediate Window

Call stack window

Breakpoints Window

Locals Window

Autos Window

Watch Window

Modules Window

Processes Window

Threads Window

Memory Window

Reference

Q&A

2

Page 3: Debug windows in visual studio

WHERE TO FIND OUT DEBUG

WINDOWS

Page 4: Debug windows in visual studio

WHERE TO FIND OUT DEBUG WINDOWS

[Debug | Windows]

Page 5: Debug windows in visual studio

WHERE TO FIND OUT DEBUG WINDOWS

Page 6: Debug windows in visual studio

DEBUG WINDOWS

Page 7: Debug windows in visual studio

OUTPUT WINDOW

Function

Display status messages for various features in the

integrated development environment (IDE)

Display

[Debug | Windows | Output]

Ctrl + Alt + O

Page 8: Debug windows in visual studio

OUTPUT WINDOW

Page 9: Debug windows in visual studio

IMMEDIATE WINDOW

Function

Debug and evaluate expressions, execute statements,

print variable values, and so forth.

Display

[Debug | Windows | Immediate]

Ctrl + Alt + I

Page 10: Debug windows in visual studio

CALL STACK WINDOW

Function

Enable you to view the names of functions on the call

stack, parameter types, and parameter values

Display

[Debug | Windows | Call Stack]

Ctrl + Alt + C

Page 11: Debug windows in visual studio

BREAKPOINTS WINDOW

Function List of breakpoints

currently set in your program

Display [Debug | Windows |

Breakpoints]

Ctrl + Alt + B

Feature View Breakpoint s

Enable/Disable Breakpoints

Delete Breakpoint

Clear All Breakpoints

Go to source code

Import/Export Breakpoints

11

Page 12: Debug windows in visual studio

LOCALS WINDOW

Function

Display variables local to the current context

Display

[Debug | Windows | Locals]

Function

Display variables local to the current context or scope

12

Page 13: Debug windows in visual studio

AUTOS WINDOW

Function

Display

variables

used in the

current

statement and

the previous

statement

Display

[Debug |

Windows |

Autos]

13

Page 14: Debug windows in visual studio

WATCH WINDOW

Function

Evaluate variables and expressions and keep the

results

Display

[Debug | Windows | Watch | Watch [1-4]]

Ctrl + Alt + W, [1–4]

Page 15: Debug windows in visual studio

MODULES WINDOW

Function

List the DLLs

and EXE that

are used and

shows relevant

information for

each

Display

[Debug |

Windows |

Modules]

Ctrl + Alt + U

Feature

Load symbol

Page 16: Debug windows in visual studio

MODULES WINDOW

Page 17: Debug windows in visual studio

PROCESSES WINDOW

Function

Show all processes that you have attached to or

launched from Visual Studio

Display

[Debug | Windows | Processes]

Ctrl + Alt + Z

Feature

Terminate process

Detach process

Break process

Continue process

Page 18: Debug windows in visual studio

THREADS WINDOW

Function

Examine and control threads in the program you are

debugging

Display

[Debug | Windows | Threads]

Ctrl + Alt + H

Feature

Active thread

Freeze thread

18

Page 19: Debug windows in visual studio

MEMORY WINDOW

Function

Provide a view into the memory space used by your

application

Display

[Debug | Windows | Memory | Memory[1-4]]

Ctrl + Alt + M, [1-4]

19

Page 20: Debug windows in visual studio

MEMORY WINDOW

Page 21: Debug windows in visual studio

REFERENCE

Page 22: Debug windows in visual studio

REFERENCE

Output Window https://msdn.microsoft.com/en-us/library/3hk6fby3.aspx

Immediate Window https://msdn.microsoft.com/en-us/library/f177hahy.aspx

Call Stack Window https://msdn.microsoft.com/en-us/library/aa290725%28v=vs.71%29.aspx

Breakpoints Window https://msdn.microsoft.com/en-us/library/aa290723%28v=vs.71%29.aspx

Locals Window https://msdn.microsoft.com/en-us/library/aa290840%28v=vs.71%29.aspx

Autos Window https://msdn.microsoft.com/en-us/library/aa290716%28v=vs.71%29.aspx

Watch Window https://msdn.microsoft.com/en-us/library/aa290869%28v=vs.71%29.aspx

Modules Window https://msdn.microsoft.com/en-us/library/aa290851%28v=vs.71%29.aspx

Page 23: Debug windows in visual studio

REFERENCE

How to: Use the Processes Window

https://msdn.microsoft.com/en-

us/library/7h8h5sdw%28v=vs.80%29.aspx

Threads Window

https://msdn.microsoft.com/en-

us/library/aa290866%28v=vs.71%29.aspx

Memory Windows

https://msdn.microsoft.com/en-

us/library/s3aw423e.aspx

Page 24: Debug windows in visual studio

QUESTION & ANSWER

24