Creating a Scrapbook Page

The scrapbook allows Java expressions, to be run, inspected, and displayed, under the control of the debugger. Breakpoints and exceptions are active as in a regular debug session.

See Running & Debugging

A VM is launched for each scrapbook page in which expressions are being evaluated. The first time an expression is evaluated in a scrapbook page after it is opened, a VM is launched. The VM for a page will remain active until the page is closed, terminated explicitly (in the debugger), or when a System.exit() is evaluated.

1.

From the workbench window, do one of the following:

  • From the drop-down menu on the Open The New Wizard button in the workbench toolbar, select Other. Then select Java on the left, and on the right, select Java Scrapbook Page. Then click Next.
  • Click the Open The New Wizard button; then in the left pane, select Java, and in the right pane, select Java Scrapbook Page. Then click Next.
  • From the menu bar in the Java Perspective, select File > New > Java Scrapbook Page.
  • From the menu bar in any non-Java Perspective, select File > New > Other. Then select Java on the left, and on the right, select Java Scrapbook Page. Then click Next.
  • Click the Create a Scrapbook Page button in the workbench toolbar.

2.

The New Java Scrapbook Page Wizard appears.

3.

In the Enter or select the folder field, type or click Browse to select the container for the new page.

4.

In the File name field, type a name for the new page. The .jpage extension will be added automatically if you do not type it yourself.

5.

Click Finish when you are done. The new scrapbook page opens in an editor.