18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

VISUAL C++<br />

enabled by default; the settings are available in the Settings command of the<br />

project menu. Click the C/C++ tab, then click General in the Category dropdown<br />

list. In the Debug info dropdown list, click Program Database for Edit and<br />

Continue.<br />

Unicode string display<br />

To set your debugger options to display Unicode strings, click the Tools menu,<br />

click Options, click Debug, then check the Display Unicode Strings check box.<br />

Variable value display<br />

Pause the cursor over a variable name in the source code to see its current<br />

value. If it is a structure, click the Eyeglasses icon or press Shift+F9 to bring up<br />

the QuickWatch dialog box or drag and drop it into the Watch window.<br />

Undocking windows<br />

If the Output window (or any docked window, for that matter) seems too<br />

small to you, try undocking it to make it a real window by right-clicking it and<br />

toggling the Docking View item.<br />

Conditional break points<br />

Use conditional break points when you need to stop at a break point only once<br />

some condition is reached—for instance, when a for loop reaches a particular<br />

counter value. To do so, set the break point normally, then bring up the<br />

Breakpoints window (Ctrl+B or Alt+F9). Select the specific break point you just<br />

set, then click the Condition button to display a dialog box in which you specify<br />

the break point condition.<br />

Preloading DLLs<br />

You can preload DLLs that you want to debug before executing the program.<br />

This allows you to set break points up front rather than waiting until the DLL<br />

has been loaded during program execution. To do this, click Project, click Settings,<br />

click Debug, click Category, then click Additional DLLs. Then, click in the<br />

list area to add any DLLs you want to preload.<br />

Changing display formats<br />

You can change the display format of variables in the QuickWatch dialog box or<br />

in the Watch window using the formatting symbols in the following table.<br />

Chapter 4 • <strong>Developer</strong> environments • 117

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

Saved successfully!

Ooh no, something went wrong!