メインコンテンツまでスキップ

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​
Declaration
public sealed class DebugAdapterServer : IWasmDebugger, IDisposable

Implements:
WaaS.Runtime.IWasmDebugger, System.IDisposable

Properties​

Port​

View Source​
Declaration
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​
Declaration
public string SourceRoot { get; }

IsConnected​

Whether a client is connected.

View Source​
Declaration
public bool IsConnected { get; }

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source​
Declaration
public void Dispose()

ShouldPause(in WasmDebugLocation)​

Called before each instruction is executed. Returns true to pause before the instruction.

View Source​
Declaration
public bool ShouldPause(in WasmDebugLocation location)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.Runtime.WasmDebugLocationlocation

OnPaused(WasmDebugPause)​

Called when the execution pauses. The execution stays paused until WaaS.Runtime.WasmDebugPause.Resume() is called.

View Source​
Declaration
public void OnPaused(WasmDebugPause pause)
Parameters​
TypeName
WaaS.Runtime.WasmDebugPausepause

Implements​