All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

How the Debug Adapter Protocol Functions as a REPL Protocol

By

Malp

5mo ago· 4 min readenInsight

Summary

The article argues that the Debug Adapter Protocol (DAP), while designed for debugging, can effectively function as a REPL (Read-Eval-Print Loop) protocol. The author shares personal experience creating nluarepl (a Neovim Lua REPL using DAP) and hprofdap (a Java heap dump inspector using DAP), demonstrating how DAP's capabilities for evaluating expressions, setting breakpoints, and inspecting state make it suitable for REPL-like interactions. The article explores the conceptual overlap between debugging protocols and REPLs, suggesting DAP's potential beyond traditional debugging use cases.

Key quotes

· 4 pulled
As the name might imply, a REPL isn't the main use case for the Debug Adapter Protocol (DAP)
The idea behind the Debug Adapter Protocol (DAP) is to abstract the way how the debugging support of development tools communicates with debuggers or run
I created nluarepl. It's a REPL for the Neovim Lua interpreter with a little twist: It's using the Debug Adapter Protocol
Also a kind of a REPL using DAP that lets you inspect Java heap dumps (.hprof files) using OQL
Snippet from the RSS feed
The Debug Adapter Protocol is a REPL protocol in disguise

You might also wanna read