|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.model.DebugElement
com.aptana.ide.debug.internal.core.model.JSDebugElement
com.aptana.ide.debug.internal.core.model.JSDebugTarget
public class JSDebugTarget
| Field Summary | |
|---|---|
protected static int |
COMMAND_TIMEOUT
COMMAND_TIMEOUT |
static int |
SOCKET_TIMEOUT
SOCKET_TIMEOUT |
| Constructor Summary | |
|---|---|
JSDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.model.IProcess process,
HttpServerProcess httpServer,
LocalResourceMapper resourceMapper,
java.net.Socket socket,
boolean debugMode)
JSDebugTarget |
|
| Method Summary | |
|---|---|
void |
breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
void |
breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
void |
breakpointManagerEnablementChanged(boolean enabled)
|
void |
breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
boolean |
canDisconnect()
|
boolean |
canResume()
|
boolean |
canSuspend()
|
boolean |
canTerminate()
|
java.lang.String |
computeValueDetails(org.eclipse.debug.core.model.IValue value)
computeValueDetails |
void |
detailFormattersChanged()
detailFormattersChanged |
void |
disconnect()
|
protected java.lang.Object |
evaluateExpression(java.lang.String expression,
org.eclipse.debug.core.model.IDebugElement context)
evaluateExpression |
protected org.eclipse.debug.core.model.IBreakpoint |
findBreakpointAt(java.lang.String filename,
int lineNumber)
findBreakpointAt |
protected org.eclipse.debug.core.model.IBreakpoint |
findBreakpointIn(java.lang.String filename,
int lineNumber,
org.eclipse.debug.core.model.IBreakpoint[] breakpoints)
findBreakpointIn |
protected org.eclipse.debug.core.model.IVariable |
findVariable(java.lang.String variableName,
org.eclipse.debug.core.model.IDebugElement context)
findVariable |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.String |
getAttribute(java.lang.String key)
Returns the value of a client defined attribute. |
org.eclipse.debug.core.model.IDebugTarget |
getDebugTarget()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
|
org.eclipse.debug.core.model.IMemoryBlock |
getMemoryBlock(long startAddress,
long length)
|
java.lang.String |
getName()
|
org.eclipse.debug.core.model.IProcess |
getProcess()
|
java.lang.String[] |
getStepFilters()
Returns the list of active step filters in this target. |
org.eclipse.debug.core.model.IThread[] |
getThreads()
|
IJSScriptElement[] |
getTopScriptElements()
getTopScriptElements |
protected void |
handleMessage(java.lang.String message)
handleMessage |
boolean |
hasThreads()
|
boolean |
isDisconnected()
|
boolean |
isFilterConstructors()
Returns whether constructors are filtered when stepping, if step filters are enabled. |
boolean |
isStepFiltersEnabled()
|
boolean |
isSuspended()
|
boolean |
isTerminated()
|
protected org.eclipse.debug.core.model.IVariable[] |
loadVariables(java.lang.String qualifier)
loadVariables |
void |
openURL(java.net.URL url)
openURL |
protected java.lang.String |
readMessage()
readMessage |
protected java.lang.String |
resolveSourceFile(java.lang.String sourceFile)
Returns absolute path for local files or leaves path(URL) unchanged |
void |
resume()
|
protected void |
sendCommand(java.lang.String command)
sendCommand |
protected void |
sendCommand(java.lang.String reqid,
java.lang.String command)
sendCommand |
protected java.lang.String[] |
sendCommandAndWait(java.lang.String command)
sendCommandAndWait |
protected java.lang.String[] |
sendCommandAndWait(java.lang.String command,
java.lang.String reqid)
sendCommandAndWait |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets the value of a client defined attribute. |
void |
setFilterConstructors(boolean filter)
Sets whether to filter constructors when stepping. |
void |
setStepFilters(java.lang.String[] list)
Sets the list of active step filters in this target. |
void |
setStepFiltersEnabled(boolean enabled)
|
protected java.lang.Object |
setValue(org.eclipse.debug.core.model.IVariable variable,
org.eclipse.debug.core.model.IValue newValue)
setValue |
boolean |
supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
boolean |
supportsStepFilters()
|
boolean |
supportsStorageRetrieval()
|
void |
suspend()
|
void |
terminate()
|
| Methods inherited from class com.aptana.ide.debug.internal.core.model.JSDebugElement |
|---|
getModelIdentifier, throwDebugException, throwDebugException, throwDebugException, throwNotImplemented |
| Methods inherited from class org.eclipse.debug.core.model.DebugElement |
|---|
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, notSupported, requestFailed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
|---|
getModelIdentifier |
| Field Detail |
|---|
public static final int SOCKET_TIMEOUT
protected static final int COMMAND_TIMEOUT
| Constructor Detail |
|---|
public JSDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.model.IProcess process,
HttpServerProcess httpServer,
LocalResourceMapper resourceMapper,
java.net.Socket socket,
boolean debugMode)
throws org.eclipse.core.runtime.CoreException
launch - process - httpServer - resourceMapper - socket - debugMode -
org.eclipse.core.runtime.CoreException| Method Detail |
|---|
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.debug.core.model.DebugElementIAdaptable.getAdapter(java.lang.Class)
protected java.lang.String readMessage()
throws java.io.IOException
java.io.IOExceptionprotected void handleMessage(java.lang.String message)
message -
protected void sendCommand(java.lang.String command)
throws org.eclipse.debug.core.DebugException
command -
org.eclipse.debug.core.DebugException
protected void sendCommand(java.lang.String reqid,
java.lang.String command)
throws org.eclipse.debug.core.DebugException
reqid - command -
org.eclipse.debug.core.DebugException
protected java.lang.String[] sendCommandAndWait(java.lang.String command)
throws org.eclipse.debug.core.DebugException
command -
org.eclipse.debug.core.DebugException
protected java.lang.String[] sendCommandAndWait(java.lang.String command,
java.lang.String reqid)
throws org.eclipse.debug.core.DebugException
command - reqid -
org.eclipse.debug.core.DebugExceptionpublic org.eclipse.debug.core.ILaunch getLaunch()
getLaunch in interface org.eclipse.debug.core.model.IDebugElementgetLaunch in class org.eclipse.debug.core.model.DebugElementIDebugElement.getLaunch()public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
getDebugTarget in interface org.eclipse.debug.core.model.IDebugElementgetDebugTarget in class org.eclipse.debug.core.model.DebugElementIDebugElement.getDebugTarget()public org.eclipse.debug.core.model.IProcess getProcess()
getProcess in interface org.eclipse.debug.core.model.IDebugTargetIDebugTarget.getProcess()
public org.eclipse.debug.core.model.IThread[] getThreads()
throws org.eclipse.debug.core.DebugException
getThreads in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.getThreads()
public boolean hasThreads()
throws org.eclipse.debug.core.DebugException
hasThreads in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.hasThreads()
public java.lang.String getName()
throws org.eclipse.debug.core.DebugException
getName in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.getName()public boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
supportsBreakpoint in interface org.eclipse.debug.core.model.IDebugTargetIDebugTarget.supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint)public boolean canTerminate()
canTerminate in interface org.eclipse.debug.core.model.ITerminateITerminate.canTerminate()public boolean isTerminated()
isTerminated in interface org.eclipse.debug.core.model.ITerminateITerminate.isTerminated()
public void terminate()
throws org.eclipse.debug.core.DebugException
terminate in interface org.eclipse.debug.core.model.ITerminateorg.eclipse.debug.core.DebugExceptionITerminate.terminate()public boolean canResume()
canResume in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.canResume()public boolean canSuspend()
canSuspend in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.canSuspend()public boolean isSuspended()
isSuspended in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.isSuspended()
public void resume()
throws org.eclipse.debug.core.DebugException
resume in interface org.eclipse.debug.core.model.ISuspendResumeorg.eclipse.debug.core.DebugExceptionISuspendResume.resume()
public void suspend()
throws org.eclipse.debug.core.DebugException
suspend in interface org.eclipse.debug.core.model.ISuspendResumeorg.eclipse.debug.core.DebugExceptionISuspendResume.suspend()public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
breakpointAdded in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointAdded(org.eclipse.debug.core.model.IBreakpoint)
public void breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
breakpointRemoved in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint,
org.eclipse.core.resources.IMarkerDelta)
public void breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
breakpointChanged in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointChanged(org.eclipse.debug.core.model.IBreakpoint,
org.eclipse.core.resources.IMarkerDelta)public boolean canDisconnect()
canDisconnect in interface org.eclipse.debug.core.model.IDisconnectIDisconnect.canDisconnect()
public void disconnect()
throws org.eclipse.debug.core.DebugException
disconnect in interface org.eclipse.debug.core.model.IDisconnectorg.eclipse.debug.core.DebugExceptionIDisconnect.disconnect()public boolean isDisconnected()
isDisconnected in interface org.eclipse.debug.core.model.IDisconnectIDisconnect.isDisconnected()public boolean supportsStorageRetrieval()
supportsStorageRetrieval in interface org.eclipse.debug.core.model.IMemoryBlockRetrievalIMemoryBlockRetrieval.supportsStorageRetrieval()
public org.eclipse.debug.core.model.IMemoryBlock getMemoryBlock(long startAddress,
long length)
throws org.eclipse.debug.core.DebugException
getMemoryBlock in interface org.eclipse.debug.core.model.IMemoryBlockRetrievalorg.eclipse.debug.core.DebugExceptionIMemoryBlockRetrieval.getMemoryBlock(long, long)public boolean isFilterConstructors()
IJSDebugTarget
isFilterConstructors in interface IJSDebugTargetIJSDebugTarget.isFilterConstructors()public void setFilterConstructors(boolean filter)
IJSDebugTarget
setFilterConstructors in interface IJSDebugTargetfilter - whether to filter constructors when steppingIJSDebugTarget.setFilterConstructors(boolean)public boolean isStepFiltersEnabled()
isStepFiltersEnabled in interface org.eclipse.debug.core.model.IStepFiltersIStepFilters.isStepFiltersEnabled()public void setStepFiltersEnabled(boolean enabled)
setStepFiltersEnabled in interface org.eclipse.debug.core.model.IStepFiltersIStepFilters.setStepFiltersEnabled(boolean)public boolean supportsStepFilters()
supportsStepFilters in interface org.eclipse.debug.core.model.IStepFiltersIStepFilters.supportsStepFilters()public java.lang.String[] getStepFilters()
IJSDebugTargetjava.lang.* or
java.lang.String.
getStepFilters in interface IJSDebugTargetnullIJSDebugTarget.getStepFilters()public void setStepFilters(java.lang.String[] list)
IJSDebugTargetjava.lang.* or
java.lang.String.
setStepFilters in interface IJSDebugTargetlist - active step filters, or nullIJSDebugTarget.setStepFilters(java.lang.String[])public java.lang.String getAttribute(java.lang.String key)
IJSDebugTarget
getAttribute in interface IJSDebugTargetkey - the attribute key
null if undefinedIJSDebugTarget.getAttribute(java.lang.String)
public void setAttribute(java.lang.String key,
java.lang.String value)
IJSDebugTarget
setAttribute in interface IJSDebugTargetkey - the attribute keyvalue - the attribute valueIJSDebugTarget.setAttribute(java.lang.String, java.lang.String)public void detailFormattersChanged()
IDetailFormattersChangeListener
detailFormattersChanged in interface IDetailFormattersChangeListenerIDetailFormattersChangeListener.detailFormattersChanged()
public void openURL(java.net.URL url)
throws org.eclipse.debug.core.DebugException
url -
org.eclipse.debug.core.DebugExceptionpublic void breakpointManagerEnablementChanged(boolean enabled)
breakpointManagerEnablementChanged in interface org.eclipse.debug.core.IBreakpointManagerListenerIBreakpointManagerListener.breakpointManagerEnablementChanged(boolean)
protected org.eclipse.debug.core.model.IVariable[] loadVariables(java.lang.String qualifier)
throws org.eclipse.debug.core.DebugException
qualifier -
org.eclipse.debug.core.DebugException
protected java.lang.Object evaluateExpression(java.lang.String expression,
org.eclipse.debug.core.model.IDebugElement context)
throws org.eclipse.debug.core.DebugException
expression - context -
org.eclipse.debug.core.DebugException
protected java.lang.Object setValue(org.eclipse.debug.core.model.IVariable variable,
org.eclipse.debug.core.model.IValue newValue)
throws org.eclipse.debug.core.DebugException
variable - newValue -
org.eclipse.debug.core.DebugException
public java.lang.String computeValueDetails(org.eclipse.debug.core.model.IValue value)
throws org.eclipse.debug.core.DebugException
IJSDebugTarget
computeValueDetails in interface IJSDebugTargetorg.eclipse.debug.core.DebugExceptionIJSDebugTarget.computeValueDetails(org.eclipse.debug.core.model.IValue)
protected org.eclipse.debug.core.model.IVariable findVariable(java.lang.String variableName,
org.eclipse.debug.core.model.IDebugElement context)
throws org.eclipse.debug.core.DebugException
variableName - context -
org.eclipse.debug.core.DebugException
protected org.eclipse.debug.core.model.IBreakpoint findBreakpointAt(java.lang.String filename,
int lineNumber)
filename - lineNumber -
protected org.eclipse.debug.core.model.IBreakpoint findBreakpointIn(java.lang.String filename,
int lineNumber,
org.eclipse.debug.core.model.IBreakpoint[] breakpoints)
filename - lineNumber - breakpoints -
protected java.lang.String resolveSourceFile(java.lang.String sourceFile)
sourceFile -
public IJSScriptElement[] getTopScriptElements()
IJSDebugTarget
getTopScriptElements in interface IJSDebugTargetIJSDebugTarget.getTopScriptElements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||