Class DebugAdapterServer
A server of the Debug Adapter Protocol (DAP), to which IDEs such as VS Code attach over TCP. While a client is connected, the server is set to WaaS.Runtime.ExecutionContext.DefaultDebugger, so that the contexts created after that can be debugged.
Assembly: WaaS.Core.dll
View Source
public sealed class DebugAdapterServer : IWasmDebugger, IDisposable
Implements:
WaaS.Runtime.IWasmDebugger, System.IDisposable
Properties
Port
View Source
public int Port { get; }
SourceRoot
The directory that the relative source paths in the line tables are resolved from, such as the root of the Unity project where cargo runs.
View Source
public string SourceRoot { get; }
IsConnected
Whether a client is connected.
View Source
public bool IsConnected { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
ShouldPause(in WasmDebugLocation)
Called before each instruction is executed. Returns true to pause before the instruction.
View Source
public bool ShouldPause(in WasmDebugLocation location)
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.WasmDebugLocation | location |
OnPaused(WasmDebugPause)
Called when the execution pauses. The execution stays paused until WaaS.Runtime.WasmDebugPause.Resume() is called.
View Source
public void OnPaused(WasmDebugPause pause)
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.WasmDebugPause | pause |
Implements
- WaaS.Runtime.IWasmDebugger
System.IDisposable