question

KamsiOzo-4360 avatar image
0 Votes"
KamsiOzo-4360 asked Hell-7731 answered

How to enter DEBUG in the Command Prompt

So I've been wanting to learn Assembly for awhile, and I want to enter DEBUG into the command prompt on a Windows 10. However, once I type in DEBUG, it prints out "'DEBUG' is not recognized as an internal or external command, operable program, or batch file." I don't know if I need to run this as an administrator, but nothing's working. How do I use DEBUG in cmd.exe or DOS on a 64-bit system?

EDIT: So I found out that the 'debug' command isn't supported on Windows 10. Is there any way to use Debug on Windows 10, or do I need to use something else?

c++vs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hell-7731 avatar image
0 Votes"
Hell-7731 answered

My solution is to install Windows 2000 in VMWare.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

Hello @KamsiOzo-4360 ,

Welcome to Microsoft Q&A forum.

Perhaps, you can have a try cl command to compile/build the C++ related(maybe embed assembly-language) files/programs and use devenv /DebugExe command(in Developer Command Prompt for VS XXXX) to debug it.

Syntax of “/DebugExe

Description of “/DebugExe” command line switch

(Syntax of “cl” command line, and Compiler options)

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimpleSamples avatar image
0 Votes"
SimpleSamples answered

Look at Getting Started with Windows Debugging. It is used for debugging Windows drivers but it can be used for user-mode applications too. Download from Download Debugging Tools for Windows. I have not used it but it is the most likely tool provided by Microsoft. Otherwise you can search for non-Microsoft solutions.

The best solution however is to use Visual Studio. Compiler intrinsics and assembly language describes use of assembler in C++ but it also has resources for straight assembler programming. VS has a sophisticated debugger that I assume works great for straight assembler too.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.