jasmsharp-debug-adapter
1.0.3
dotnet add package jasmsharp-debug-adapter --version 1.0.3
NuGet\Install-Package jasmsharp-debug-adapter -Version 1.0.3
<PackageReference Include="jasmsharp-debug-adapter" Version="1.0.3" />
<PackageVersion Include="jasmsharp-debug-adapter" Version="1.0.3" />
<PackageReference Include="jasmsharp-debug-adapter" />
paket add jasmsharp-debug-adapter --version 1.0.3
#r "nuget: jasmsharp-debug-adapter, 1.0.3"
#:package jasmsharp-debug-adapter@1.0.3
#addin nuget:?package=jasmsharp-debug-adapter&version=1.0.3
#tool nuget:?package=jasmsharp-debug-adapter&version=1.0.3
The Debug Adapter
The debug-adapter connects the state machine with the visualizer. When running it shows the current state(s) in real-time. To make it run you have to connect the debug-adapter with the state machine and you have to run the jasm-debugger docker image. The HistoryExample and the HowToUseTheDebugAdapter projects show how to use the debug-adapter.
Using the Debug Adapter
Your jasmsharp project needs a dependency to the jasmsharp-debug-adapter package (NuGet).
Connect the debug-adapter to your state machine like this:
DebugAdapter.Of(<your fsm>);
From the example project, it would look like this:
this.TrafficLight = new TrafficLight();
DebugAdapter.Of(this.TrafficLight.FsmMain);
this.TrafficLight.FsmMain.Start();
When you run your project now, the debug-adapter will try to connect to a jasm-debugger instance running on localhost:4000.
Running the jasm-debugger
You can run the jasm-debugger using Docker. Just pull the image and run it:
docker pull frantoso/jasm-debugger
docker run -p 4000:4000 -p 5076:5076 frantoso/jasm-debugger
After that, you can open your browser and go to http://localhost:5076 to see the visualizer.
Configuration
If the default host and port do not fit your needs, you can configure them. Just change the docker run port mappings and configure the debug-adapter accordingly.
You can configure the debug-adapter using environment variables:
JASM_DEBUGGER_HOST: The host where the jasm-debugger is running. Default islocalhost.JASM_DEBUGGER_PORT: The port where the jasm-debugger is running. Default is4000.
Also, you can configure the debug-adapter via a config file debug-settings.json which is in the applications directory:
{
"JasmDebug": {
"TcpSettings": {
"Host": "9.8.7.6",
"Port": 1441
}
}
}
The config file settings override the environment variables.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- jasmsharp (>= 1.0.3)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Configuration.Json (>= 10.0.1)
- System.Configuration.ConfigurationManager (>= 10.0.1)
-
net8.0
- jasmsharp (>= 1.0.3)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Configuration.Json (>= 10.0.1)
- System.Configuration.ConfigurationManager (>= 10.0.1)
-
net9.0
- jasmsharp (>= 1.0.3)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Configuration.Json (>= 10.0.1)
- System.Configuration.ConfigurationManager (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.