• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】Debug是什么

问答 admin 1年前 (2020-09-04) 229次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

DEBUG是计算机排除故障的意思。如DOS系统中的调试程序,程序名称就叫DEBUG。DEBUG在windows系统中也是极其重要的调试操作。

Debug is the meaning of computer troubleshooting. Such as DOS system debugging program, the program name is called debug. Debug is also an important debugging operation in Windows system.

DEBUG 是一个 DOS 实用程序,是供程序员使用的程序调试工具,可以用它检查内存中任何地方的字节以及修改任何地方的字节。它可以用于逐指令执行某个程序以验证程序运行的正确性,也可以追踪执行过程、比较一个指令执行前后的值以及比较与移动内存中数据的范围,读写文件与磁盘扇区。

Debug is a DOS utility program. It is a program debugging tool for programmers. It can be used to check bytes anywhere in memory and modify bytes anywhere. It can be used to execute a program instruction by instruction to verify the correctness of the program. It can also track the execution process, compare the values before and after the execution of an instruction, compare and move the range of data in memory, read and write files and disk sectors.

DEBUG 是计算机排除故障的意思。马克 2 号(Harvard Mark II)编制程序的格蕾丝·霍珀(Grace Hopper)是一位美国海军准将及计算机科学家,同时也是世界最早的一批程序设计师之一。有一天,她在调试设备时出现故障,拆开继电器后,发现有只飞蛾被夹扁在触点中间,从而“卡”住了机器的运行。于是,霍珀诙谐的把程序故障统称为“臭虫(BUG)”,把排除程序故障叫 DEBUG,而这奇怪的“称呼”,竟成为后来计算机领域的专业行话。如 DOS 系统中的调试程序,程序名称就叫 DEBUG。DEBUG 在 windows 系统中也是极其重要的调试操作。

Debug is the meaning of computer troubleshooting. Grace hopper, a U.S. Navy Brigadier and computer scientist, was one of the first programmers in the world. One day, when she was debugging the equipment, she broke down the relay and found that a moth was clamped in the middle of the contact, thus “blocking” the operation of the machine. As a result, Hooper humorously referred to program failure as “bug” and troubleshooting as debug, which became a professional jargon in the field of computer science. Such as DOS system debugging program, the program name is called debug. Debug is also an important debugging operation in Windows system.

1937 年,美国青年霍华德·艾肯找到 IBM 公司为其投资 200 万美元研制计算机,第一台成品艾肯把它取名为:马克 1 号(mark1),又叫“自动序列受控计算机”,从这时起 IBM 公司由生产制表机,肉铺磅秤,咖啡研磨机等乱七八糟玩意儿行业,正式跨进“计算机”领地。为马克 1 号编制程序的是哈佛的一位女数学家格蕾丝·霍珀,有一天,她在调试程序时出现故障,拆开继电器后,发现有只飞蛾被夹扁在触点中间,从而“卡”住了机器的运行。于是,霍珀诙谐的把程序故障统称为“臭虫(BUG)”,把排除程序故障叫 DEBUG,而这奇怪的“称呼”,后来成为计算机领域的专业行话。从而 debug 意为排除程序故障的意思。

In 1937, Howard Aiken, a young American, found IBM to invest $2 million to develop a computer. The first finished product was named Mark 1, also known as “automatic sequence controlled computer” The company from the production of tabulating machines, meat shops, scales, coffee grinders and other miscellaneous industries, officially entered the “computer” territory. Mark 1 was programmed by grace hopper, a Harvard mathematician. One day, when she was debugging the program, she broke down. After opening the relay, she found that a moth was clamped in the middle of the contact points, thus “jamming” the machine. As a result, hopper humorously referred to program failures as “bugs” and troubleshooting as debug, which later became a professional jargon in the field of computer science. So debug means to remove the program fault.

Debug 是一种程序,一种调试工具,说白了就是供程序员检查修改问题的工具。用比较正式的话说 Debug 是 DOS,Windows 都提供的实模式(也就是 8086 方式)程序的调试工具。其实严格来说,Debug 是在 DOS 方式下使用的程序,我们在进入 Debug 前应该先进入 DOS。而就目前我们用的计算机来说,进入 DOS 有以下两种方法:

Debug is a kind of program, a debugging tool. In other words, it is a tool for programmers to check and modify problems. In a more formal way, debug is a debugging tool for real mode (i.e. 8086 mode) programs provided by dos and windows. In fact, strictly speaking, debug is a program used in DOS mode. We should enter DOS before entering debug. As far as the computer we use at present, there are two ways to enter DOS:

1.重启计算机,进入 DOS,此时进入的是实模式的 DOS。

1. Restart the computer and enter DOS, which is the real mode DOS.

2.在 Windows 界面进入 DOS,此时进入的是虚拟 8086 模式的 DOS。

2. Enter DOS in Windows interface, and enter DOS in virtual 8086 mode.

Debug 把所有数据都当成字节处理,因此可以用它检查内存中任何地方的字节以及修改任何地方的字节。它可以用于逐指令执行某个程序以验证程序运行的正确性,也可以在机器码这个级别追踪执行过程、比较一个指令执行前后的值以及比较与移动内存中数据的范围,读写文件与磁盘扇区。

Debug treats all data as bytes, so you can use it to check bytes anywhere in memory and modify bytes anywhere. It can be used to execute a program instruction by instruction to verify the correctness of the program. It can also track the execution process at the machine code level, compare the values before and after the execution of an instruction, and compare and move the range of data in memory, read and write files and disk sectors.

值得一提的是,Debug 在汇编语言中的应用非常广泛,Debug 的命令比较多,大约 20 多个,和汇编密切相关的有 R 命令、D 命令、E 命令、U 命令、T 命令、A 命令等等,当然每个命令作用不同,比如 D 是查看内存内容,E 是修改内存内容,T 是执行一条机器指令等等,还有很多,而且都有固定的命名使用格式,这里就不一一讲了,我们今天主要是让大家知道并理解 Debug 的意思。

It is worth mentioning that debug is widely used in assembly language. There are more than 20 commands to debug. There are R command, D command, e command, u command, t command, a command and so on. Of course, the functions of each command are different. For example, D is to view the memory content, e is to modify the memory content, and t is to view the memory content It is to execute a machine instruction and so on. There are many more, and they all have fixed naming and using formats. I won’t talk about them one by one. Today, we mainly want to let you know and understand the meaning of debug.


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】Debug是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址