Basically I'm writing a simple C-like language that outputs direct NASM syntax assembler. I can debug this in VS but it's kind of pain. Using MASM it's a bit more fluid debugging wise, but NASM has a %line directive that I could use to link my original source to the assembly while debugging (Note I haven't actually got this to work yet).
I can't find anyway to debug NASM assembly on Win 10 or the equivalent of the %line directive in MASM (which I can debug in VS)
Any help is much appreciated.
For anyone else who has trouble with this.
NASM needs something similar to below to get debug output on windows.
nasm -g -F cv8 mymain.asm -f win64 -o mymain.obj
To use the symbols and actually get a pdb file you need to tell LINK to give it to you. Both /pdb:filename and /debug are needed.
link /subsystem:console /pdb:mymain.pdb /debug /entry:mymain mymain.obj