Class NetworkDebugger
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.launcher.LaunchAdapter
-
- org.eclipse.m2m.atl.emftvm.launcher.debug.NetworkDebugger
-
- All Implemented Interfaces:
VMMonitor
public class NetworkDebugger extends LaunchAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
NetworkDebugger.Command
A debugger command.
-
Constructor Summary
Constructors Constructor Description NetworkDebugger(org.eclipse.debug.core.ILaunch launch, int port, boolean suspend)
Creates a newNetworkDebugger
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(StackFrame frame)
Enters the stack frame.void
error(StackFrame stackFrame, java.lang.String msg, java.lang.Exception e)
Throws an error.ExecEnv
getExecEnv()
Returns theExecEnv
, if available.StackFrame
getLastFrame()
Returns the last stack frame, if available.void
leave(StackFrame frame)
Leaves the stack frame.void
step(StackFrame frame)
Steps into the stack frame.void
terminated()
Invoked when execution is terminated.java.lang.String
toString()
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.launcher.LaunchAdapter
getLaunch, isTerminated, setTerminated
-
-
-
-
Constructor Detail
-
NetworkDebugger
public NetworkDebugger(org.eclipse.debug.core.ILaunch launch, int port, boolean suspend)
Creates a newNetworkDebugger
.- Parameters:
launch
- the launch object to wrapport
- the network port to listen tosuspend
- whether to start suspended
-
-
Method Detail
-
enter
public void enter(StackFrame frame)
Enters the stack frame.- Specified by:
enter
in interfaceVMMonitor
- Overrides:
enter
in classLaunchAdapter
- Parameters:
frame
- the frame to enter in- See Also:
LaunchAdapter.enter(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
leave
public void leave(StackFrame frame)
Leaves the stack frame.- Specified by:
leave
in interfaceVMMonitor
- Overrides:
leave
in classLaunchAdapter
- Parameters:
frame
- the frame to leave- See Also:
LaunchAdapter.leave(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
step
public void step(StackFrame frame)
Steps into the stack frame.- Specified by:
step
in interfaceVMMonitor
- Overrides:
step
in classLaunchAdapter
- Parameters:
frame
- the frame to step- See Also:
LaunchAdapter.step(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
terminated
public void terminated()
Invoked when execution is terminated.- Specified by:
terminated
in interfaceVMMonitor
- Overrides:
terminated
in classLaunchAdapter
- See Also:
LaunchAdapter.terminated()
-
error
public void error(StackFrame stackFrame, java.lang.String msg, java.lang.Exception e)
Throws an error.- Specified by:
error
in interfaceVMMonitor
- Overrides:
error
in classLaunchAdapter
- Parameters:
stackFrame
- the current framemsg
- the error messagee
- the exception- See Also:
LaunchAdapter.error(StackFrame, String, Exception)
-
getLastFrame
public StackFrame getLastFrame()
Returns the last stack frame, if available.- Returns:
- the lastFrame, or
null
-
getExecEnv
public ExecEnv getExecEnv()
Returns theExecEnv
, if available.- Returns:
- the
ExecEnv
, ornull
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-