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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="jasmsharp-debug-adapter" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jasmsharp-debug-adapter" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="jasmsharp-debug-adapter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add jasmsharp-debug-adapter --version 1.0.3
                    
#r "nuget: jasmsharp-debug-adapter, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package jasmsharp-debug-adapter@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=jasmsharp-debug-adapter&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=jasmsharp-debug-adapter&version=1.0.3
                    
Install as a Cake Tool

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 is localhost.
  • JASM_DEBUGGER_PORT: The port where the jasm-debugger is running. Default is 4000.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 121 1/13/2026
1.0.1 135 1/13/2026