i write a windows program in masm32,the program is very simple, prompt a messagebox

makefile is:
$(NAME).exe: $(NAME).obj
$(NAME).obj: $(NAME).asm
ml /c /coff /Zi /Cp $(NAME).asm

i write a debug.bat

nmsym /translate:source,package,always /source:. /load:execute,break %1

then type "debug first.exe" in command line
the program begin running and the main window prompted

How i debug the program?and set a breakpoint?
thank a lot!!
Posted on 2003-05-11 09:21:01 by sakuya
Setting a breakpoint, use int 3
Posted on 2003-05-11 09:37:04 by roticv
After you do debug.bat, open the softice's loader and open this module.Then click the button "Module" on the menu,then click load.And softice will then display.
Posted on 2003-05-17 07:40:26 by pdx1989
Or set a debugger as your JIT debugger.
Posted on 2003-05-17 08:19:57 by roticv
And suggest you a good PE editor:LordPe , you can use it to add an int 3 to your program conveniently.And then, also type "bpint 3" in your debugger.Open the program,your debugger will automatically break on the entrypoint of your program.Clear int3, now you can debug, have fun!


And also suggest you to go to MSDN, you can get the result of many problems that you have : www.microsoft.com/msdn/
Posted on 2003-05-18 05:14:14 by pdx1989
For such a thing a prefered
the debugger Olydebug http://home.t-online.de/home/Ollydbg/
it is more simple .

Posted on 2003-06-06 07:42:28 by ToutEnMasm