public class DebugTargetImpl extends DebugElementImpl
DebugElementImpl.WithConnected, DebugElementImpl.WithConnectedBase, DebugElementImpl.WithEvaluate, DebugElementImpl.WithEvaluateBase, DebugElementImpl.WithSuspended, DebugElementImpl.WithSuspendedBase
Constructor and Description |
---|
DebugTargetImpl(ILaunch launch,
WorkspaceBridge.Factory workspaceBridgeFactory,
SourceWrapSupport sourceWrapSupport,
BreakpointSynchronizer.Direction presetSyncDirection) |
Modifier and Type | Method and Description |
---|---|
static boolean |
attach(DebugTargetImpl debugTargetImpl,
JavascriptVmEmbedder.ConnectionToRemote remoteServer,
DestructingGuard destructingGuard,
java.lang.Runnable attachCallback,
IProgressMonitor monitor)
Loads browser tabs, consults the
selector which of the tabs to
attach to, and if any has been selected, requests an attachment to the tab. |
void |
breakpointAdded(IBreakpoint breakpoint) |
void |
breakpointChanged(IBreakpoint breakpoint,
IMarkerDelta delta) |
void |
breakpointRemoved(IBreakpoint breakpoint,
IMarkerDelta delta) |
boolean |
canDisconnect() |
boolean |
canResume() |
boolean |
canSuspend() |
boolean |
canTerminate() |
void |
disconnect() |
static void |
fireDebugEvent(DebugEvent event)
Fires a debug event
|
void |
fireTargetCreated() |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
static java.util.List<ConnectedTargetData> |
getAllConnectedTargetDatas() |
java.lang.String |
getChromiumModelIdentifier() |
ConnectedTargetData |
getConnectedOrNull() |
DebugTargetImpl |
getDebugTarget() |
WorkspaceBridge.JsLabelProvider |
getLabelProvider() |
ILaunch |
getLaunch() |
IMemoryBlock |
getMemoryBlock(long startAddress,
long length) |
java.lang.String |
getName() |
IProcess |
getProcess() |
SourceWrapSupport |
getSourceWrapSupport() |
IThread[] |
getThreads() |
java.lang.String |
getVmStatus() |
boolean |
hasThreads() |
boolean |
isDisconnected() |
boolean |
isSuspended() |
boolean |
isTerminated() |
void |
resume() |
boolean |
supportsBreakpoint(IBreakpoint breakpoint) |
boolean |
supportsStorageRetrieval() |
void |
suspend() |
void |
terminate() |
getModelIdentifier
public DebugTargetImpl(ILaunch launch, WorkspaceBridge.Factory workspaceBridgeFactory, SourceWrapSupport sourceWrapSupport, BreakpointSynchronizer.Direction presetSyncDirection)
public static boolean attach(DebugTargetImpl debugTargetImpl, JavascriptVmEmbedder.ConnectionToRemote remoteServer, DestructingGuard destructingGuard, java.lang.Runnable attachCallback, IProgressMonitor monitor) throws CoreException
selector
which of the tabs to
attach to, and if any has been selected, requests an attachment to the tab.debugTargetImpl
- target that is attachedremoteServer
- embedding application we are connected withdestructingGuard
- guard that should gain any destructable value -- a caller
will dispose everything if this method failsattachCallback
- to invoke on successful attachment, can fail to be calledmonitor
- to report the progress toCoreException
public void fireTargetCreated()
public DebugTargetImpl getDebugTarget()
getDebugTarget
in class DebugElementImpl
public ILaunch getLaunch()
getLaunch
in class DebugElementImpl
public boolean canTerminate()
public boolean isTerminated()
public void terminate() throws DebugException
DebugException
public boolean canResume()
public boolean canSuspend()
public boolean isSuspended()
public void resume() throws DebugException
DebugException
public void suspend() throws DebugException
DebugException
public void breakpointAdded(IBreakpoint breakpoint)
public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta)
public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta)
public boolean canDisconnect()
public void disconnect() throws DebugException
DebugException
public boolean isDisconnected()
public boolean supportsStorageRetrieval()
public IMemoryBlock getMemoryBlock(long startAddress, long length) throws DebugException
DebugException
public IProcess getProcess()
public IThread[] getThreads() throws DebugException
DebugException
public boolean hasThreads() throws DebugException
DebugException
public java.lang.String getName()
public boolean supportsBreakpoint(IBreakpoint breakpoint)
public java.lang.String getChromiumModelIdentifier()
public WorkspaceBridge.JsLabelProvider getLabelProvider()
public java.lang.String getVmStatus()
public ConnectedTargetData getConnectedOrNull()
public SourceWrapSupport getSourceWrapSupport()
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in class DebugElementImpl
public static java.util.List<ConnectedTargetData> getAllConnectedTargetDatas()
public static void fireDebugEvent(DebugEvent event)
event
- to be firedCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.