flat assembler
Message board for the users of flat assembler.

Index > IDE Development > FASM2 Studio, a VS Code extension for fasmg, with debugger

Author
Thread Post new topic Reply to topic
Lu4nScr1pt1ng



Joined: 21 Jul 2026
Posts: 2
Lu4nScr1pt1ng 21 Jul 2026, 22:34
I do basically everything in VS Code nowadays and wanted real integration with fasmg there
instead of just syntax highlighting, so I ended up building an extension for it - FASM2 Studio.

Main stuff it does: autocomplete/hover for directives, instructions, registers etc, go to
definition and rename across the whole project (not just the file you've got open), and it runs
the actual fasmg compiler in the background so the errors you see are real compiler errors, not
some guess at the rules.

There's also a debugger. fasmg doesn't output DWARF or anything like that, so there's no standard
way to map addresses back to your source - I get around it by injecting a small listing macro at
build time and using that to build the address/line mapping, then it drives gdb (or lldb) through
their MI interface. So you get breakpoints, stepping, registers, and can evaluate gdb expressions
directly ($eax, *(dword*)$esp etc). No call stack or typed variables obviously, but for raw asm
that's not really missing much.

Doesn't ship fasm2 or gdb itself, just uses whatever you've already got installed on PATH.

Works on Linux/macOS/Windows in theory, but honestly I've only really hammered on the debugger on
Linux so far. Windows and macOS use the same code but I haven't had hardware to properly test on,
so there could be stuff broken there I just don't know about yet.

Still pretty new so expect some bugs. MIT licensed, happy to get issues or PRs if anyone runs into
problems or wants something added:

https://github.com/Lu4nScr1pt1ng/FASM-2-Studio
Post 21 Jul 2026, 22:34
View user's profile Send private message Reply with quote
Lu4nScr1pt1ng



Joined: 21 Jul 2026
Posts: 2
Lu4nScr1pt1ng 21 Jul 2026, 22:35
Post 21 Jul 2026, 22:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.