Reputation: 343
how do i open DEBUG in dosbox for an exe file on win7 (assembly file) traied td not work traied DEBUG get to a new line with no option to enter my file name traied DEBUG got a new line that start with -
hoe do i open the file?
Upvotes: 1
Views: 2827
Reputation: 7483
As Michael said, to debug a program, you use debug foo.exe
.
Printing a '-' is what the debugger does to show that it is ready to accept a debugging command. Try entering '?' to see the list of available debugging commands. Or you can use 't' to start single-stepping thru the program. You can also visit https://msdn.microsoft.com/en-us/library/cc722863.aspx for a more detailed explanation of the available commands.
Be aware that the dos 'debug' program is a very simple debugger. If you are used to a full-screen, multiple-window, source code debugger, you are going to be really disappointed. 'debug' is more limited than most other debuggers, and harder to learn.
If you are going to take the time to learn how to use a debugger, 'debug' wouldn't normally be the one I recommend.
Upvotes: 2