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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Eclipse Platform
Release 3.5

Package org.eclipse.debug.core.model

Defines interfaces for debug model elements, source lookup, and launching.


Interface Summary
IBreakpoint A breakpoint is capable of suspending the execution of a program at a specific location when a program is running in debug mode.
IBreakpointImportParticipant This interface defines a breakpoint import participant.
IDebugElement A debug element represents an artifact in a program being debugged.
IDebugModelProvider A debug model provider provides debug model identifiers.
IDebugTarget A debug target is a debuggable execution context.
IDisconnect The ability to end a debug session with a target program and allow the target to continue running.
IDropToFrame Provides the ability to drop to frame.
IErrorReportingExpression An expression that can report errors which occurred during the expression's evaluation.
IExpression An expression is a snippet of code that can be evaluated to produce a value.
IFilteredStep Deprecated. clients should implement IStepFilters instead
IFlushableStreamMonitor A stream monitor who's contents can be flushed.
IIndexedValue A value containing an indexed collection of variables - for example, an array.
ILaunchConfigurationDelegate A launch configuration delegate performs launching for a specific type of launch configuration.
ILaunchConfigurationDelegate2 Optional enhancements to the launch configuration delegate interface.
ILineBreakpoint A breakpoint that can be located at a specific line of source code.
ILogicalStructureTypeDelegate A delegate that provides a value representing the logical structure of a raw implementation value from a debug model.
ILogicalStructureTypeDelegate2 Optional extension to ILogicalStructureTypeDelegate that allows a logical structure type delegate to provide a description for a value.
IMemoryBlock A contiguous segment of memory in an execution context.
IMemoryBlockExtension Extensions to IMemoryBlock.
IMemoryBlockRetrieval Supports the retrieval of arbitrary blocks of memory.
IMemoryBlockRetrievalExtension Extended capabilities for memory block retrieval.
IPersistableSourceLocator A source locator that can be persisted and restored, to be used with a specific launch configuration.
IProcess A process represents a program running in normal (non-debug) mode.
IRegister A register is a special kind of variable that is contained in a register group.
IRegisterGroup A register group is a group of registers that are assigned to a stack frame.
ISourceLocator A source locator locates source elements for stack frames.
IStackFrame A stack frame represents an execution context in a suspended thread.
IStep Provides the ability to step into, over, and return from the current execution location.
IStepFilters Support for step filters for a debug target.
IStreamMonitor A stream monitor manages the contents of the stream a process is writing to, and notifies registered listeners of changes in the stream.
IStreamsProxy A streams proxy acts as proxy between the streams of a process and interested clients.
IStreamsProxy2 Extension to a streams proxy that allows closing of the output stream connected to the standard input stream of a proxy's process.
ISuspendResume Provides the ability to suspend and resume a thread or debug target.
ITerminate Provides the ability to terminate an execution context - for example, a thread, debug target or process.
IThread A thread is a sequential flow of execution in a debug target.
IValue A value represents the value of a variable.
IValueModification Provides the ability to modify the value of a variable in a target.
IVariable A variable represents a visible data structure in a stack frame or value.
IWatchExpression A watch expression is an expression that is evaluated in the context of a specific stack frame, thread, debug target, process, or launch.
IWatchExpressionDelegate A delegate which computes the value of a watch expression when provided a context.
IWatchExpressionListener A watch expression listener is notified when an org.eclipse.debug.core.model.IWatchExpressionDelegate completes an evaluation.
IWatchExpressionResult The result of an evaluation performed by an org.eclipse.debug.core.model.IWatchExpressionDelegate.
IWatchpoint A breakpoint that suspends when an associated variable is read or written.

Class Summary
Breakpoint Abstract implementation of a breakpoint.
DebugElement Implementation of common function for debug elements.
LaunchConfigurationDelegate Default implementation of a launch configuration delegate.
LineBreakpoint Abstract implementation of a line breakpoint.
MemoryByte A byte of memory in a memory block.
RuntimeProcess Standard implementation of an IProcess that wrappers a system process (java.lang.Process).

Package org.eclipse.debug.core.model Description

Defines interfaces for debug model elements, source lookup, and launching.

Package Specification

This package defines classes and interfaces known as the "debug model" which support an extensible set of debug architectures and languages. The debug model is a set of interfaces representing common artifacts in debuggable programs. The debug plug-in itself does not provide an implementation of a debug model. It is intended that third parties providing an integrated set of development tools for a specific language will also implement a debug model for that language, using an underlying debug architecture of their choice. For example, Java development tooling provides an implementation of a debug model based on the standard Java Platform Debug Architecture (JPDA).

The Debug Model

A client implements a debug model by providing an implementation of the interfaces defined in this package. (There is no explicit extension point that represents a debug model). Each debug model provides one or more launch configuration types capable of initiating a debug session.

The common elements defined by the debug model are:

  • Debug Target - A debug target represents a debuggable program - for example, a virtual machine or a process.
  • Thread - A debug target may contain one or more threads.
  • Stack Frame - A suspended thread may contain one or more stack frames.
  • Variable - A stack frame may contain variables.
  • Value - Each variable has an associated value, and a value may contain more variables (to represent complex data structures and objects).
  • Register Group - A stack frame may (optionally) be associated with one or more register groups.
  • Register - A register group contains one or more registers.
  • Memory Blocks - A debug target may (optionally) support the retrieval of arbitrary contiguous segments of memory.
  • Breakpoint - Breakpoints suspend the execution of a program.
  • Expression - An expression is a snippet of code that can be evaluated to produce a value.

A debug model implementation is responsible for firing debug events. A debug event corresponds to an event in a program being debugged - for example the creation or termination of a thread.


Breakpoints are used to suspend the execution of a program being debugged. There are many kinds of breakpoints - line breakpoints, conditional line breakpoints, hit count breakpoints, exception breakpoints, etc. The kinds of breakpoints supported by each debug architecture, and the information required to create those breakpoints is dictated by each debug architecture. The debug platform supports an extensible set of breakpoint via the breakpoints extension point.

The debug platform provides a breakpoint manager that maintains the collection of all registered breakpoints. Clients add and remove breakpoints via this manager. Breakpoints are implemented by instances of IBreakpoint. Each breakpoint object has an associated marker, which provides persistence and presentation in editors. The debug platform defines a generic breakpoint and line breakpoint, as well as their corresponding marker definitions. Breakpoint creation is a client responsibility - that is, defining the attributes of a breakpoint and the resource to associate a breakpoint marker with.

Breakpoints are persisted via their underlying marker. Breakpoint markers defined with the persisted attribute as false will not be persisted. Breakpoints are restored at workspace startup time by the breakpoint manager - that is, breakpoint objects are created for all persisted markers which are a subtype of the root breakpoint marker and are added to the breakpoint manager. To allow for selective persistence of breakpoints (of the same kind), the IBreakpoint interface and root breakpoint implementation defines a "persisted" attribute. If this value is set to false, the breakpoint will not be persisted across workspace invocations.

As breakpoint markers are modified (created, removed, and changed), resource deltas are created by the platform. The breakpoint manager translates pertinent resource deltas into breakpoint change notifications (breakpoint added/removed/changed messages). Interested listeners may register with the breakpoint manager. The breakpoint manager only fires change notifications for registered breakpoints. This simplifies breakpoint processing for clients, as resource delta traversal and analysis is not required. Debug targets that support breakpoints should register for breakpoint change notifications.

New Features in the Debug Model, Eclipse 3.0

Launch Delegate Enhancements

Lanuch delegates can optionally implement the new interface ILaunchConfigurationDelegate2. This allows launch delegates to provide a launch object to be used for a launch. For example, when debugging on a server a delegate could create a new launch object or may reuse an existing launch object if the server is already running in debug mode. As well, the inteface provides a mechanism for performing a scoped build prior to launching (i.e. scoped to the projects in the workspace pertaining to the launch), and searching for errors in the workspace which may prevent the launch from succeeding (for example, compilation errors).

Extensible Watch Expressions

The debug platform provides an implementation of watch expressions. Debug models can contribute watch expression delegates if they support watch expressions. When a stack frame is selected, the associated delegate is queried to provide a value for a watch expression in that context. The debug platform provides persistence, enabling, disabling, entering, and editing of watch expressions.

Automatic Array Partitioning

The debug plug-in supports automatic partitioning of indexed collections, which partitions large arrays into sub-ranges in the variables view. This is supported with the introduction of a new interface in the debug model representing an indexed value - IIndexedValue. If a value implements this interface, the variables view will automatically partition its elements as required, into sub-ranges

Logical Structure Types

Often, it is convenient to navigate complex data structures in terms of a logical structure, rather than an implementation structure. For example, no matter how a list is implemented (i.e. linked list, collection of arrays, etc.), it is often convenient to be able to view the list as an ordered collection. To facilitate the display of logical structures in the variables view, an extension point has been added (org.eclipse.debug.core.logicalStructureTypes) allowing debug models to contribute logical structures of its values, where applicable. Debug models may contribute delegates to translate raw implementation values into logical values. The variables view will display the logical values, when the option to display logical structures is turned on. More than one logical structure can be provided for a single value - the user can choose which structure to display.

Step Filters

To support step filters on all stepping functions (into, over, return), a new interface has been added to the debug platform - IStepFilters - which can be implemented by debug targets. This interface replaces IFilteredStep, which is now deprecated. The debugger provides a global toggle that turns step filters on/off for all stepping functions. Debug targets should implement this new interface and honor the step filter enablement setting when stepping.

This change maintains binary compatibility with previous releases. However, targets wishing to leverage the new function must implement the new interface.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

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