# Show Monitors

Select the Show Monitors command [ ] to change if monitor information will be shown or not 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.

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.

Debugging Locally
Debugging Remotely

Suspending
Resuming

Debug View
Show Monitors
Show System Threads
Show Thread Groups