Skip to content

syrup: warduino debug crate, DAP server, and debug console - #407

Open
tolauwae wants to merge 22 commits into
fix/maartenfrom
tools/syrup
Open

syrup: warduino debug crate, DAP server, and debug console #407
tolauwae wants to merge 22 commits into
fix/maartenfrom
tools/syrup

Conversation

@tolauwae

@tolauwae tolauwae commented Aug 29, 2026

Copy link
Copy Markdown
Member

Crate: wdebug

A Rust crate to interact directly with the WARDuino debugger. Code is based on the debug.proto file. This crate is used to implement the DAP crate.

WARDuino DAP crate

A Rust DAP library, and DAP server implementation. Run with just:

just dap-server 127.0.0.1:4711

WARDuino debug console

A tiny console mostly for internal use to test and debug the debugger API since sending messages over telnet is not practically feasible anymore.

demo

Currently it uses the DAP crate. So messages are sent through that intermediate layer. The console logs all DAP and VM messages.

VS Code debugging

VS Code debugging plugin fully based on the WARDuino DAP server. The whole plugin is one package.json.

To run it start a WARDuino instance, and a DAP server that connects to it.

wdcli fac.wasm --paused --socket 8192 &
cd tools/syrup; just dap-server 127.0.0.1:4711

Then in VS Code you can connect to the DAP server and debug your application.

image

@tolauwae tolauwae changed the title Add rust warduino library, DAP layer, and syrup console syrup: warduino debug crate, DAP server, and debug console Aug 29, 2026
@tolauwae
tolauwae force-pushed the tools/syrup branch 5 times, most recently from 10debba to fdce3f4 Compare August 31, 2026 14:04
@tolauwae
tolauwae changed the base branch from nanopb to tests/nanopb August 31, 2026 14:19
@MaartenS11

Copy link
Copy Markdown
Member

I feel like syrup and the surrounding infrastructure should probably be in its own repository.

@tolauwae

tolauwae commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

I am actually not sure. I know we usually do, but increasingly I feel like one monolith repo for WARDuino makes a lot of sense. Because the whole project is incredibly split now.

@tolauwae
tolauwae force-pushed the tools/syrup branch 2 times, most recently from 5db0135 to 0c91f1b Compare September 2, 2026 13:05
@tolauwae
tolauwae changed the base branch from tests/nanopb to fix/maarten September 4, 2026 07:55
@tolauwae
tolauwae force-pushed the tools/syrup branch 2 times, most recently from 25ad73c to 64b76c5 Compare September 9, 2026 09:05
@tolauwae
tolauwae force-pushed the tools/syrup branch 2 times, most recently from 1e10371 to 917e8de Compare September 11, 2026 13:19
@tolauwae
tolauwae marked this pull request as ready for review September 11, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants