Holy cow, I wrote a book!
Next time you find yourself debugging in assembly language
(which for some of us is the only way we debug),
here are some machine code tricks you may wish to try out:
It has been pointed out that this works only for functions
that take zero stack parameters; otherwise,
your stack gets corrupted.
More generally, you can use 83 C4 XX 90 90
(ADD ESP, XX; NOP; NOP) where XX is the number of bytes
you need to pop. Personally, I don't remember the machine
code for these instructions so I tend to rewrite the CALL
instruction so it calls the "RETD" at the end of the function.
83 C4 XX 90 90
I prefer these single-byte patches to wholesale erasure with 90
because they are easier to undo if you realize that you want to
restore the code to the way it was before you messed with it.