Skip navigation links
Eclipse Platform
Oxygen (4.7)

Package org.eclipse.debug.core

Provides support for launching programs, breakpoint management, expression management, and debug events.

See: Description

Package org.eclipse.debug.core Description

Provides support for launching programs, breakpoint management, expression management, and debug events.

Package Specification

This package provides classes and interfaces to support facilities common among many debug architectures: launching programs, breakpoint management, expression management, and debug events. An extensible set of debug architectures and languages are supported by the definition of a "debug model" - a set of interfaces representing common artifacts in debuggable programs, which are defined in org.eclipse.debug.core.model. 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 Managers

The debug platform defines and provides an implementation of the following managers:

Launch Configurations

A launch configuration is a persistable description of how to launch an application. Each launch configuration is an instance of a type of launch configuration - for example, a Java Application. The debug plug-in defines a launch configuration type extension point that clients can contribute to. A launch configuration is a set of attributes describing how to launch a program. The launching of an application is performed by an associated implementation of a launch configuration delegate, contributed by each launch configuration type extension.

A launch configuration may be stored as a file in the worksapce (and shared in a repository via standard team mechanisms), or may be stored locally, essentially making the launch configuration private for a single user.

New Features in the Debug Platform, Eclipse 3.0

Extensible Launch Modes

The debug platform supports an extensible set of launch modes. Prior releases only supported two launch modes - run and debug. The debug platform defines an extension point for contributing new launch modes (org.eclipse.debug.core.launchModes), and contributes three basic launch modes itself: run, debug, and profile. The launch manager has API to retrieve all launch modes, and a human readable label for each launch mode.

The debug platform has an extension point to support the contribution of a launch delegate for a specific launch configuration type and launch mode - org.eclipse.debug.core.launchDelegates. This allows launch configurations to be extended by third parties, to support new launch modes. For example, a client could contribute a launch delegate that launches a Java Application in profile mode (currently, the SDK does not provide a Java profiler).

For backwards compatibility, the launch delegate supplied by a launch configuration type extension is used for the launch modes specified by the launch configuration type. A launch delegate supplied for a specific mode, is used only for that mode.

Extensible Debug Events

The debug platform supports an extensible set of debug events. A debug event kind of MODEL_SPECIFIC has been added to indicate an application specific debug event. When a debug event of kind MODEL_SPECIFIC is created, the detail code in the event is client defined. The source of the event (debug element that generated the event) identifies the debug model from which the event was generated. The debug platform and user interface ignores model specific debug events.

A data field has been added to debug events to allow clients to store application specific data in debug events.

Process Factories

The debug platform provides an extension point (org.eclipse.debug.core.processFactories) for contributing process factories. A process factory can be used to override default process creation for a launch configuration when the debug plug-in creates a new process. A launch configuration can specify a process factory to use when creating a process, via the launch configuration attribute DebugPlugin.ATTR_PROCESS_FACTORY_ID.

Launch Termination Notification

The debug platform provides a mechanism for launch listeners to be notified when a launch terminates. A launch is a container of processes and debug targets. When all of the contained targets and processes terminate, a terminate notification is sent to those listeners implementing ILaunchesListener2.

Breakpoint Manager Enablement

The breakpoint manager defines the methods setEnabled(boolean) and isEnabled(). When the breakpoint manager is disabled, debuggers should ignore all registered breakpoints. The debug platform also provides a new listener mechanism, IBreakpointManagerListener which allows clients to register with the breakpoint manager to be notified when its enablement changes.

Skip navigation links
Eclipse Platform
Oxygen (4.7)


Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.