Debug adapter client
Stop your program in the middle of running it, look at what every value actually is, and step through it one line at a time.
When you would want it
Adding print statements to work out what a program is doing is guessing with extra steps. A debugger just shows you.
Where to find it
- All Features → Debug adapter client
- Settings → adcode.language.dapClient
- Keyboard → F5
What you get out of it
- You see the real state of the program, not whatever print statements you remembered to add.
- Breakpoints survive restarts, so repeat runs stop in the same places.
- Languages without a debug adapter say so honestly instead of offering dead buttons.
How to use it, step by step
- Click left of a line number to set a breakpoint - a red dot appears.
- Press F5 to run under the debugger.
- When the program stops, read every value in scope in the side panel.
- F10 steps over the next line, F11 steps into a function call.
- Press F5 again to continue to the next breakpoint or the end.
Why this beats the usual way
Print-debugging is guessing with extra steps; most light editors leave you to it because a real debug adapter client is hard to build. ADCode includes one, wired for JavaScript, TypeScript, and Python out of the box.
Shortcut
F5
Find it in Universal Search
Debug adapter client · Languages