mq-dap

Crates.iomq-dap
lib.rsmq-dap
version0.5.12
created_at2025-11-23 11:53:15.997303+00
updated_at2026-01-25 14:05:43.106035+00
descriptionDebug Adapter Protocol implementation for mq
homepagehttps://mqlang.org/
repositoryhttps://github.com/harehare/mq
max_upload_size
id1946423
size122,067
Takahiro Sato (harehare)

documentation

README

mq-dap

Debug Adapter Protocol implementation for mq.

Usage

Command Line

Start the DAP server (typically done automatically by your editor):

# Start the DAP server
mq-dbg

# Debug a specific query file
mq-dbg query.mq input.md

Debugging Features

Once connected to a DAP client:

  1. Set Breakpoints: Click in the gutter or use your editor's breakpoint command
  2. Start Debugging: Launch the debugger with your query file
  3. Step Through Code: Use step over, step in, and step out commands
  4. Inspect Variables: Hover over variables or view them in the variables pane
  5. View Call Stack: See the current execution stack in the call stack pane

Example Debug Session

# Create a query file
echo '.h | let y = to_text() | breakpoint() | y' > query.mq

# Start debugging
mq-dbg query.mq input.md

Development

Building from Source

git clone https://github.com/harehare/mq
cd mq
cargo build --release -p mq-dap

Running Tests

cargo test -p mq-dap

Support

License

Licensed under the MIT License.

Commit count: 3487

cargo fmt