10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RUNNING AND DEBUGGING<br />

4. Set the Expression to be evaluated or the Number of times to skip before stopping.<br />

5. Click OK.<br />

6. Click Close.<br />

Setting Java Exception Breakpoints<br />

To set a breakpoint when an exception occurs, complete the following steps:<br />

1. Select the Exceptions tab on the Breakpoint toolbar.<br />

2. Click Add and select one or more exceptions from the list.<br />

3. Click OK.<br />

Once an exception breakpoint is added, double-click on it to display the exception properties dialog. This<br />

dialog allows you to specify an expression, number of times to skip before stopping, and a specific thread.<br />

Generate Debug<br />

This feature supports C#, C++, Java, and Slick-C®. Place the cursor on a function name, then click Tools<br />

> Generate Debug to generate a statement that dumps the name of the current function and the value of<br />

the parameter(s) passed in. Place the cursor on a variable name, then click Tools > Generate Debug to<br />

generate a statement that dumps the contents of that variable. The results are as follows:<br />

• In C#, this will generate a System.Diagnostics.Trace.WriteLine() statement.<br />

• In C++, this will generate a printf statement.<br />

• In Java, this will generate a System.out.println statement.<br />

• In Slick-C, this will generate a say statement.<br />

Viewing Debugger Info and Setting Options<br />

To view the properties of the underlying debugger system, including a general description retrieved from<br />

the debugger, version number, run-time version, and debugger name, make sure you’re in debug mode,<br />

then from the main menu, click Debug > Debugger Information (or use the debug_props command).<br />

188 <strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!