Java Scrapbook Page

The scrapbook allows Java expressions to be run, inspected, and displayed, under the control of the debugger.

Note: Content assist (such as code assist) is available on scrapbook pages.

Java Scrapbook page buttons

Command

Name

Description

Run Snippet button

Run Snippet

Running an expression evaluates an expression but does not display a result.

Display button

Display

Displaying shows the result of evaluating an expression as a string in the scrapbook editor.

Inspect button

Inspect

Inspecting shows the result of evaluating an expression in the Expressions view.

Terminate button

Terminate

This command terminates the Java VM that is used to evaluate expressions.

Set the import Declarations button

Set the Import Declarations

This commands sets the import declarations to be used for the context of evaluating the code

Related concepts

Scrapbook

Related tasks

Creating a Java scrapbook page
Displaying the result of evaluating an expression
Inspecting the result of evaluating an expression
Executing an expression

Related reference

New Java scrapbook page wizard