03.01.2015 Views

C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Breakpoints Window ❘ 235<br />

➤➤<br />

Modules—This window displays information about the DLL and EXE files used by the<br />

program. It shows each module’s filename and path; whether it is optimized; whether it is<br />

your code (rather than an installed library); and whether debugging symbols are loaded. It<br />

also shows each module’s load order (lower-numbered modules are loaded first), version,<br />

and timestamp.<br />

Often it is useful to make the visible debug windows occupy separate tabs in the same area at the<br />

bottom of the IDE. That enables you to switch between them quickly and easily without them<br />

taking up too much space.<br />

The Breakpoints Window<br />

The Breakpoints window lists all the breakpoints. If you double-click a breakpoint in the list, you<br />

can easily jump to the code that holds it.<br />

The icons to the left of the breakpoints shown in Figure 10-2 give information about their properties.<br />

The following list describes the icons.<br />

➤➤<br />

➤➤<br />

➤➤<br />

➤➤<br />

Solid red circle—This indicates an ordinary breakpoint.<br />

White plus sign—This indicates the breakpoint is modified by a condition, hit count, or<br />

filter. The following text describes these.<br />

Diamond—This indicates the breakpoint performs some special action when it is<br />

reached. Normally, the action prints a message in the Immediate window showing<br />

values that you specify.<br />

Hollow circle or diamond—This indicates the breakpoint has been disabled.<br />

Right-click a breakpoint and select Condition to display the dialog box shown in Figure 10-3. By<br />

default, a breakpoint pauses execution whenever it is reached. You can use this dialog box to add an<br />

additional condition that determines whether the breakpoint pauses the program when it is reached.<br />

In Figure 10-3, the breakpoint pauses execution if the expression (number < 10) && (i > 5) is<br />

true when the code reaches the breakpoint.<br />

Figure 10-3: The Breakpoint Condition dialog box<br />

enables you to specify a condition that determines<br />

whether execution pauses at the breakpoint.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!