How to enter DEBUG in the Command Prompt

Kamsi Ozo 1 Reputation point
2021-06-25T12:28:39.327+00:00

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++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,516 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
935 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Hell 36 Reputation points
    2021-07-04T08:48:37.447+00:00

    My solution is to install Windows 2000 in VMWare.

    1 person found this answer helpful.
    0 comments No comments

  2. Sam of Simple Samples 5,516 Reputation points
    2021-06-25T20:50:53.17+00:00

    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.

    0 comments No comments

  3. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2021-06-28T03:47:28.463+00:00

    Hello @Kamsi Ozo ,

    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.
    0 comments No comments