Show Monitors

Select the Show Monitors command [ Show Monitors ] to change if monitor information will be shown for suspended threads.

Note: The display of monitor information must be supported by the underlying VM. If using an IBM or SUN VM, any version greater than 1.4 will support monitor information.

Consider the following code example:

 * Hello World
public class HelloWorld {

	 public static void main(String[] args) {
		Object mutex = new Object();
		synchronized (mutex) {
			System.out.println("Hello World!");

If the above code snippet is run on a supporting VM with Show Monitors selected, the monitor information is represented as a 'key' and appearing before any stack frames as a child of a suspended thread.

Monitor Information

If however, we run the same snippet on an unsupported VM with Show Monitors selected, we are alerted that monitor information is not supported by the VM.

Monitors Not Supported

Local debugging
Remote debugging Changing debugger launch options
Connecting to a remote VM with the Remote Java application launch configuration
Disconnecting from a VM
Launching a Java program
Preparing to debug
Resuming the execution of suspended threads
Running and debugging
Stepping through the execution of a program
Suspending threads Debug View
Debug preferences
Show System Threads
Show Thread Groups