我如何从 Windows 64x 运行调试命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19661366/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 11:02:01  来源:igfitidea点击:

how can i run the debug command from windows 64x

windowsdebuggingassemblycmdsystem

提问by user2192774

I need to use the debugcommand in Windows 64x for learning purposes. When I type the command debug in the cmd, I get the following message:

我需要debug在 Windows 64x 中使用该命令进行学习。当我在 cmd 中键入命令 debug 时,我收到以下消息:

'debug' is not recognized as an internal or external command, 
 operable program or batch file.

As I understand from some previous posts that debug does not work in 64x systems. Is there any work around for this issue?

正如我从之前的一些帖子中了解到的,调试在 64x 系统中不起作用。这个问题有什么解决办法吗?

EDIT:I am trying to write assembly code for learning. I am not allowed to use any other option for writing assembly code. I have to use DEBUG.

编辑:我正在尝试编写用于学习的汇编代码。我不允许使用任何其他选项来编写汇编代码。我必须使用调试。

回答by Howard Renollet

debug.exe is not available in any of the 64 bit windows versions. What are you trying to accomplish? One option for you may be gnu debug - http://www.sourceware.org/gdb/

debug.exe 在任何 64 位 Windows 版本中均不可用。你想达到什么目的?您的一种选择可能是 gnu 调试 - http://www.sourceware.org/gdb/

回答by Eske Rahn

I know this is an ancient thread, but others might have the same question.

我知道这是一个古老的线程,但其他人可能有同样的问题。

In general to use legacy software, the CLEANEST way to do it is to use the build in Hyper-V. And then have PC-DOS 3.30 (or any suitable 16 or 32 bit OS) on that.

一般来说,要使用遗留软件,最干净的方法是使用 Hyper-V 中的构建。然后在其上安装 PC-DOS 3.30(或任何合适的 16 位或 32 位操作系统)。

Make sure to use a DYNAMIC disk (vhdx). This allows the disk to be mounted in Windows simply by clicking the vhdx (when not in use by Hyper-V - no sharing), so this allows for simple transfers, without complex net-setup.

确保使用动态磁盘 (vhdx)。这允许只需单击 vhdx(当 Hyper-V 未使用时 - 无共享)即可在 Windows 中安装磁盘,因此这允许简单的传输,无需复杂的网络设置。

There are other alternatives such as DOSBOX, though to my experience their emulation have some bugs (e.g. on the ancient FCB-system - older than file-handles)

还有其他替代方案,例如 DOSBOX,但根据我的经验,他们的模拟存在一些错误(例如,在古老的 FCB 系统上 - 比文件句柄更旧)