final class DebugSession extends ProtocolServer with Cancelable
This debug adapter maintains the lifecycle of the debuggee in separation from JDI. The debuggee is started/closed together with the session.
This approach makes it necessary to handle the "launch" requests as the "attach" ones. The JDI address of the debuggee is obtained through the DebugSessionLogger
- Alphabetic
- By Inheritance
- DebugSession
- Cancelable
- Serializable
- Serializable
- ProtocolServer
- AbstractProtocolServer
- IProtocolServer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
class
ByteBuffer extends AnyRef
- Attributes
- private[com.microsoft.java.debug.core.protocol]
- Definition Classes
- AbstractProtocolServer
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cancel(): Unit
Cancels the background debuggee process, the DAP server and closes the socket.
Cancels the background debuggee process, the DAP server and closes the socket.
- Definition Classes
- DebugSession → Cancelable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
dispatchRequest(request: Request): Unit
- Definition Classes
- DebugSession → ProtocolServer → AbstractProtocolServer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exitStatus: Task[ExitStatus]
Completed, once this session exit status can be determined.
Completed, once this session exit status can be determined. Those are: DebugSession.Terminated and DebugSession.Restarted.
Session gets the Terminated status when the communication stops without the client ever requesting a restart.
Session becomes Restarted immediately when the restart request is received. Note that the debuggee is still running and the communication with the client continues (i.e. sending terminated and exited events).
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
run(): Unit
Redirects to startDebuggeeAndServer().
Redirects to startDebuggeeAndServer(). Prevents starting the server directly, without starting the debuggee
- Definition Classes
- DebugSession → ProtocolServer → AbstractProtocolServer
-
def
sendEvent(event: DebugEvent): Unit
- Definition Classes
- DebugSession → ProtocolServer → AbstractProtocolServer → IProtocolServer
-
def
sendRequest(arg0: Request, arg1: Long): CompletableFuture[Response]
- Definition Classes
- ProtocolServer → AbstractProtocolServer → IProtocolServer
-
def
sendRequest(arg0: Request): CompletableFuture[Response]
- Definition Classes
- ProtocolServer → AbstractProtocolServer → IProtocolServer
-
def
sendResponse(response: Response): Unit
- Definition Classes
- DebugSession → ProtocolServer → AbstractProtocolServer → IProtocolServer
-
def
startDebuggeeAndServer(): Unit
Schedules the start of the debugging session.
Schedules the start of the debugging session.
For a session to start, two executions must happen independently in a non-blocking way: the debuggee process is started in the background and the DAP server starts listening to client requests in an IO thread.
-
def
stop(): Unit
- Definition Classes
- AbstractProtocolServer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )