We gave the AI a real debugger instead of print
When an AI hunts for a bug, it keeps adding print lines all over the code and taking them out again. The AI in Blyck sets breakpoints like a person and reads the values right where the program stopped. Here’s what happened as we added debuggers for 16 languages, and what we found when we actually timed it: "the debugger wasn’t always faster."
By Jongmin Lee
Ask an AI to “find out why this crashes” and the same thing usually happens. It puts print lines here and there in the code, runs it, reads the output, then puts print somewhere else. Once it finds the cause, it deletes the lines it added. Sometimes one or two get left behind and end up committed.
A human developer uses a debugger for this. You set a red dot (a breakpoint) on the line you suspect, and when the program stops there, you look at the variable values at that moment. You don’t change the code, so there’s nothing to clean up.
So we gave the AI in Blyck a real debugger, too.
How the AI uses the debugger
Ask the AI chat something like “The worker crashes when I give it pending.txt. Find out why,” and the AI follows the same steps a person takes with a debugger.
- It sets a breakpoint on the line where it wants to stop (
dbg_breakpoint). If that file isn’t open, it opens it in the pane next to the chat. - It runs the program in debug mode and waits until it stops at a breakpoint or an uncaught error (
dbg_start). - It reads the line where it stopped, the error message, the variables, the call stack and the output so far. If needed, it evaluates an expression right there and also looks at the variables of the function that called this one (
dbg_inspect). - It continues, steps over, steps into or steps out, and looks again (
dbg_step). When it has seen enough, it ends the debug session.
It doesn’t add a single line to the code. It looks at the values at the exact moment the program actually stopped. One thing you should know: the expressions the AI evaluates really run inside the program. If an expression changes a value, the program’s state changes too. It’s the same as when a person types an expression into the debug console.
You see it in your own editor
This isn’t a debugger the AI uses quietly in the background. The debug view in your own editor moves as it works.

When the AI sets a breakpoint, a red dot appears next to the line number. When it stops, that line turns yellow. The values at that moment show up faintly at the end of the line (job = 'ORD-1042,3'), and the variables and call stack open in the panel below. The status bar shows ✦ AI chat is debugging in gold.
So you can see what the AI is looking at, right alongside it. If you get curious partway through, you can press the buttons and step through the lines yourself. Each time the AI uses a tool, a short result like ”⏸ Paused · line 15 · worker.py:15” is added to the chat, so you can also see later in what order it narrowed down the cause.
It works the other way, too. If you’re debugging yourself with F5 and press [✦ Ask AI] where it stopped, the stopped line, variable values, call stack and output all go to the AI together. Just ask “Why does it crash here?” and the AI answers by looking at the state at that moment.
16 languages, each with its own quirks
At first, only Python and JavaScript worked. Now you can debug Python, JavaScript, TypeScript, Go, Dart (including Flutter apps), Swift, C#, Rust, C, C++, Lua, Java, Bash, PowerShell, PHP and Ruby files on this PC.
We didn’t put the debuggers in the installer. The first time you debug a language, Blyck shows the size, like “debugpy (Python), about 33 MB”, and downloads it when you press [Download]. For languages that already come with a debugger, like Node.js, Dart and Swift, there’s nothing to download.
Every language we added had its own quirks.
- C#: Microsoft’s .NET debugger is only licensed for use in Microsoft products. So we use the open-source debugger Samsung made (netcoredbg).
- Bash: There wasn’t a usable debugger. The popular one only runs through WSL on Windows, and the bashdb inside it didn’t run on the old bash 3.2 that ships with the Mac. So we built a small Bash debugger right into Blyck. It runs on both Git Bash on Windows and bash 3.2 on the Mac.
- Rust: When a
panichappens, it stops deep inside Rust’s standard library, and looking there doesn’t help. So we pick the top spot in your own code from the call stack and show that. - Flutter: It picks the device to run on in this order: a connected phone, a running emulator, this computer. If there’s nothing, it starts an Android emulator and waits. When we timed it on a Mac mini, building on an already running Android emulator and stopping at a breakpoint took 64 seconds.
- PHP, Ruby, PowerShell: “Stop on uncaught errors” doesn’t work. Either the debugger doesn’t have it, or it also stops on errors that were already handled, so it stops far too often in real programs. For these languages, the error message and location show in the output pane, and to stop and look, you need to set a breakpoint before that line.
Some things don’t work yet. For Kotlin, the license terms of the available debugger aren’t clear about use in a paid product, so we haven’t added it yet. Files on a remote server can’t be debugged yet either. In that case, the AI looks for the cause by running the program and reading the output.
Bugs we found along the way
While adding languages, we ran things for real and found and fixed a lot of problems. Some of them weren’t limited to one language but affected every language.
- On Windows, if a breakpoint path was sent with forward slashes like
D:/…, the C# debugger silently didn’t set the breakpoint. Now every language converts paths to that operating system’s format before sending them. - Korean output from .NET and Java programs came out garbled. The programs were printing in this PC’s console code page (CP949 on Korean Windows). We don’t change the program; instead, we set the code page to UTF-8 when we start the debugger.
- Breakpoints changed in a different file from the one where debugging started weren’t passed to the debugger. That problem was in every language. Now they’re sent to every place that’s debugging in the same language.
But the AI rarely uses the debugger
Here we have to be honest about something. With the debugger in place, we expected the AI to find bugs faster. So we actually timed it.
We opened a new AI chat in a test copy of Blyck and gave it only the bug, without saying the word “debugger”. Each bug gave a wrong value because of one line of data. In Python, a region name in a CSV had a trailing space. In JavaScript, the quantity was text, so "4" + 1 became "41".
In the first test, Claude saw the JavaScript bug and tried to set a breakpoint on its own. But it failed with “Couldn’t open the file” and went back to another approach. It turned out the test copy of Blyck had 57 windows left over from earlier tests, over the limit of windows it can open (40). The problem was that the tool didn’t tell the AI why. Without knowing why, the AI had no choice but to give up on the debugger. Now the tool returns the reason it couldn’t open the file.
In the second test, with the data grown to 3,000 lines, Claude (Python and JavaScript) and GPT (Python) all fixed it correctly in 1.3 to 2.4 minutes. But in all three runs, they never used the debugger once. They found the odd line right away with short commands like grep, python -c and node -e.
We thought a language that needs building would be different, since you have to rebuild every time you add a print. So we made a Go bug at the 3,000-line scale, where the date 2026-3-1 couldn’t be read and the running discount total became 0, and tried it three ways.
| Approach | Time taken | Result |
|---|---|---|
| Left it to the AI (didn’t use the debugger) | 2.5 minutes | Fixed correctly |
| ”Find it with the debugger” | 3.5 minutes | Fixed correctly |
| ”Find it by adding output lines” | 2.8 minutes | Fixed correctly |
The debugger was the slowest. Go builds in a few seconds, so the difference was small, and since this bug shows up if you dig through the data, the AI chose that path on its own.
So we decided: put a debugger in every language, but let the AI choose whether to use it. We didn’t add any guidance like “use the debugger first in cases like this” either. There’s no reason to force the debugger on a job a short command finishes quickly. Instead, we made sure the AI can use it all the way through in every language, so it doesn’t get stuck the moment it needs one. There may be places where the debugger is faster, like big projects that take a long time to rebuild or phone apps, but we haven’t measured those yet.
When you really need print: @BLYCK@
Sometimes, like with a server that keeps running or a phone app, you need to watch the flow rather than stop it. For those times, we also made a log line with a fixed format. Have the code print a @BLYCK@ {"label": …, "vals": …} line, and whenever that line appears in a Blyck terminal or web preview, Blyck collects it separately and the AI reads it. There’s no need to copy and paste terminal output.

We also took care of the “forgetting to delete what you added” problem from the start. When you’re done, say “Clean up the debug lines” and the AI finds the remaining @BLYCK@ lines and deletes only those. You can also check separately before a release that none are left.
A person’s tool, for the AI too
AI is already fast enough at changing code. What we cared about was how the AI finds the cause. We wanted the AI to use the same debugger a human developer uses, and a person to be able to watch it on the same screen.
When we measured it, the AI picked its tools more cleverly than we expected. If a short command does the job, it uses a short command, and the debugger is there to pull out when it’s needed. That’s what human developers do, too.
Questions or feedback? Leave them on GitHub.