Packages

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

Linear Supertypes
Cancelable, Serializable, Serializable, ProtocolServer, AbstractProtocolServer, IProtocolServer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DebugSession
  2. Cancelable
  3. Serializable
  4. Serializable
  5. ProtocolServer
  6. AbstractProtocolServer
  7. IProtocolServer
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DebugSession(socket: Socket, initialState: State, initialLogger: Logger, ioScheduler: Scheduler, loggerAdapter: LoggerAdapter)

Type Members

  1. class ByteBuffer extends AnyRef
    Attributes
    private[com.microsoft.java.debug.core.protocol]
    Definition Classes
    AbstractProtocolServer

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def dispatchRequest(request: Request): Unit
    Definition Classes
    DebugSession → ProtocolServer → AbstractProtocolServer
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. 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).

  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def run(): Unit

    Redirects to startDebuggeeAndServer().

    Redirects to startDebuggeeAndServer(). Prevents starting the server directly, without starting the debuggee

    Definition Classes
    DebugSession → ProtocolServer → AbstractProtocolServer
  19. def sendEvent(event: DebugEvent): Unit
    Definition Classes
    DebugSession → ProtocolServer → AbstractProtocolServer → IProtocolServer
  20. def sendRequest(arg0: Request, arg1: Long): CompletableFuture[Response]
    Definition Classes
    ProtocolServer → AbstractProtocolServer → IProtocolServer
  21. def sendRequest(arg0: Request): CompletableFuture[Response]
    Definition Classes
    ProtocolServer → AbstractProtocolServer → IProtocolServer
  22. def sendResponse(response: Response): Unit
    Definition Classes
    DebugSession → ProtocolServer → AbstractProtocolServer → IProtocolServer
  23. 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.

  24. def stop(): Unit
    Definition Classes
    AbstractProtocolServer
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Cancelable

Inherited from Serializable

Inherited from Serializable

Inherited from ProtocolServer

Inherited from AbstractProtocolServer

Inherited from IProtocolServer

Inherited from AnyRef

Inherited from Any

Ungrouped