I have experienced completing one program for a couple days, without debugging, and on one of the question I did, ppl suggested me to use debug tools that is possible to debug line by line like VS studio do. I am just getting familiar with using CLI. ( using Ubuntu on VirtualBox. )and looking for someone offering me to Steps to approach using debug tools. Just in case, I use NASM and Gcc tool. and I use them like those below.
 nasm -f elf search.asm    ( this makes search.o )
 gcc -o search search.o asm_io.o  ( I use the external file to use some functions )
 ./search      
    
printfcalls around like you can in higher level languages, because even calling a function will affect your registers (and it's easy to introduce new bugs, and some functions are optimized in ways that only work for leaf functions...)gcccommand will only work on a 32bit system. On a 64bit system, you'll needgcc -m32to link 32bit objects created bynasm -felf. See this post for info on building with NASM and gcc.