NASM Forum > Summer of Code Ideas

Can NASM get a debugger?


Can the NASM distribution get a assembly language debugger too?
Searching around led me to
Maybe the team can learn how ALD does it and build something of their own for NASM!

Frank Kotler:
Hi  mayureshkathe,

Welcome to the forum.

I am only guessing, but I would guess that Nasm will not soon be seeing a "netwide" debugger. While Patrick's ALD is great for Linux and the BSDs, it won't do much for our dos/doze users who have not yet made the step up. :)

Unless you'd like to contribute something...


You can just compile your NASM programs w/ the `-g` flag, then use a debugger of your choice. I'm sure you're familiar w/ GDB, so there's a place to start.


uncle Richard:
I've don't try, but it's maybe better place. And even the best for you, mayureshkathe.

I agree debuggers are pretty relevant to most people that program around these stages of programming. If you're programming on linux I'd suggest that the basic resources like gdb have good potential. From my understanding I did have to learn other things like file types and settings however I've gotten good use from this. On linux I run ld for linking and object files that gdb uses for assembly debugging. I've also noticed for people that use alot of .bin files that bochs is another common option. Other than that just a standard makefile and that's about how I debug code here.

This is the gdb function file I use
From prompt
sudo gdb
gdb> source -s -v gdb.config


--- Code: ---define settings1
add-symbol-file boot.o 0x7c00
target remote | qemu-system-i386 -S -hda os.bin -gdb stdio

define build1
add-symbol-file boot.o 0x7c00 \

define build2
target remote | qemu-system-i386 -S -fda os.img -gdb stdio

--- End code ---

If there's anything else you'd like details on let me know


[0] Message Index

Go to full version