Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

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

Related concepts

Debugger
Local debugging
Remote debugging

Related tasks

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

Related reference

Debug View
Debug preferences
Show System Threads
Show Thread Groups


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire