windows10 如何使用 debug

Posted 霜序0.2℃

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windows10 如何使用 debug相关的知识,希望对你有一定的参考价值。

需要下载两个工具:
DOSBox和debug.exe
可以从官网下载,百度直接下载也行
DOSBox官网

DOSBox官方文档

也可以在我上传的资源里下载,不用积分和会员的

安装的话,无脑下一步即可


安装完成后点开


如果我们直接输入debug,那么会提示非法命令

所以这时候我们还需要debug.exe

我们把debug.exe的文件放到C盘的根目录下,然后在DOSBox中挂载它(和linux的挂载一样,不懂的可以不管,但是还是要做这一步)

输入mount c c:\\

然后我们需要在转换到C盘下

输入c:

然后输入debug,就可以使用了

不过有个缺点,就是每次打开DOSBox都要挂载,有兴趣的话看看官方文档怎么说的

=====================================
13. The configuration (options) file:
=====================================
The configuration file is automatically created the first time you run DOSBox. The file can be found in:

(Windows) "Start/WinLogo Menu"->"All Programs"->DOSBox-0.74-3->Options

(Linux) ~/.dosbox/dosbox-0.74-3.conf

(MAC OS X) "~/Library/Preferences/DOSBox 0.74-3 Preferences"

The file is divided into several sections. Each section starts with a [section name] line. The settings are the property=value lines where value can be altered to customize DOSBox.
# and % indicate comment-lines.

 

An extra configuration file can be generated by CONFIG.COM, which can be found on the internal DOSBox Z: drive when you start up DOSBox. Look in the Section 4: "Internal programs" for usage of CONFIG.COM. You can start DOSBox with the -conf switch to load the generated file and use its settings.

 

DOSBox will load configuration files that are specified with -conf. If none were specified, it will try to load "dosbox.conf" from the local directory. If there is none, DOSBox will load the user configuration file. This file will be created if it doesn't exist.

 

Important!: In Windows Vista/7 the configuration file won't work correctly if it is located in "Windows" or "Program Files" folder or their subfolders, or directly on c:\\, so the best place for storing extra configuration files is for example: C:\\oldgames

以上是关于windows10 如何使用 debug的主要内容,如果未能解决你的问题,请参考以下文章

如何测量代码片段的调用次数和经过时间

蓝屏DMP文件分析工具Debugging Tools怎么用

Win8.1蓝屏,用Windows Debugging Tool分析出来的结果,求高手帮忙看看

在 Windows 10 上使用 D3D11 调试层和 VS2013

谁知道如何查看Windows下正在运行的程序堆栈,Linux可以用gdb,windows下该用啥

VSCode自定义代码片段10—— 数组的响应式方法