Debug windows in visual studio

Post on 15-Jul-2015

58 views 2 download

Tags:

Transcript of Debug windows in visual studio

DEBUG WINDOWS IN VISUAL STUDIO

Larry Nung

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

WHERE TO FIND OUT DEBUG

WINDOWS

WHERE TO FIND OUT DEBUG WINDOWS

[Debug | Windows]

WHERE TO FIND OUT DEBUG WINDOWS

DEBUG WINDOWS

OUTPUT WINDOW

Function

Display status messages for various features in the

integrated development environment (IDE)

Display

[Debug | Windows | Output]

Ctrl + Alt + O

OUTPUT WINDOW

IMMEDIATE WINDOW

Function

Debug and evaluate expressions, execute statements,

print variable values, and so forth.

Display

[Debug | Windows | Immediate]

Ctrl + Alt + I

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

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

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

AUTOS WINDOW

Function

Display

variables

used in the

current

statement and

the previous

statement

Display

[Debug |

Windows |

Autos]

13

WATCH WINDOW

Function

Evaluate variables and expressions and keep the

results

Display

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

Ctrl + Alt + W, [1–4]

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

MODULES WINDOW

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

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

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

MEMORY WINDOW

REFERENCE

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

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

QUESTION & ANSWER

24