Get the latest tech news

A Debugger is a REPL is a Debugger


I love debuggers! The last time I used a debugger seriously was in 2017 or so, when I was still coding in Kotlin. I've since switched to working with native code, and, sadly gdb and lldb are of almost no help for me. This is because they are mere debuggers, but what I need is a REPL, and a debugger, all in one. In this article I show a more productive way to use debuggers as REPLS.

I’ve since switched to working with native code, and, sadly gdb and lldb are ofalmost no help for me. Thistwo features completely change how I used debuggers — instead of stepping through my program andobserving it, I zap between interesting points of its execution and run experiments. You need to beable to place yourself “in the middle” of your application, where you have access to all the locals.Debuggers do this via setting breakpoints, but the click-on-the-fringe (or, worse, enter file:line:column textually) UI is atrocious.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of REPL

REPL

Photo of debugger

debugger

Related news:

News photo

Show HN: Letting LLMs Run a Debugger

News photo

Linux 6.14 To Perform Better With The Drgn Debugger Via Faster /proc/kcore Reads

News photo

GNU Debugger GDB 16.1 Brings Better Intel PT Support, gstack Added