debug sth
debug 是及物动词,后接程序、代码等调试对象。
She spent the afternoon debugging the software.
她花了一下午调试这个软件。
调试;排除程序错误
debugging — present participle of debug
查找并消除错误或故障,尤指计算机程序或机器中的。;从(某处)移除隐藏的电子监控设备。;除错;改正有毛病部分;除去窃听器
locate and correct errors in a computer program code
查找并消除错误或故障,尤指计算机程序或机器中的。
To search for and eliminate malfunctioning elements or errors in something, especially a computer program or machinery.
从(某处)移除隐藏的电子监控设备。
To remove a hidden electronic surveillance device from (somewhere).
一般现在时
I debug the code before every release.
每次发布前我都调试代码。
现在进行时
She is debugging the new app right now.
她现在正在调试这个新应用。
一般过去时
They debugged the system yesterday.
他们昨天调试了系统。
注意现在分词和过去式要双写 g:debugging,debugged。
After the software crashed, the developer spent two hours debugging the code to find the error.
软件崩溃后,开发者花了两个小时调试代码以找出错误。
用法提示:这里 debugging 是 debug 的现在分词,表示‘调试’,即查找并修正程序错误。
You should debug the program step by step before releasing it to users.
在发布给用户之前,你应该一步一步地调试这个程序。
用法提示:debug 用作动词原形,表示‘调试’程序,查找并修复错误。
She debugged the script until all the error messages disappeared.
她调试脚本,直到所有错误信息都消失。
用法提示:debugged 是 debug 的过去式,表示‘调试’并排除了脚本中的错误。
debug 是及物动词,后接程序、代码等调试对象。
She spent the afternoon debugging the software.
她花了一下午调试这个软件。
for 后接要解决的具体问题,如 errors、leaks 等。
The developers debugged the code for memory leaks.
开发人员调试了代码,以排查内存泄漏。
by 后接调试所采用的方法。
He debugged the script by adding print statements.
他通过添加打印语句来调试脚本。
通用词,既可用于程序错误,也可用于一般问题;语气较 debug 更日常,不特指逐行排查代码。
强调系统性地诊断问题,常用于技术场景;可指硬件或软件,不一定只针对代码错误,语气比 debug 更正式。
泛指使事物正确,可用于任何错误类型;不包含“定位错误”的过程,侧重把错误改对。
特指用补丁更新或修复代码,对象常是已发布的程序;区别于 debug 的定位和修正全过程。
正式用语,强调使错误变正确,常用于书面或专业表述;口语中很少用,也不侧重调试过程。
grammar · medium
易错句子I need to debug on the program.
正确表达I need to debug the program.
debug 是及物动词,直接接宾语,不需要介词 on;这是受到汉语“对程序进行调试”的影响。去掉 on 后,动词直接支配宾语。
grammar · medium
易错句子I debugged program all morning.
正确表达I debugged the program all morning.
program 是可数名词单数,前面需要限定词(如 the)。不能省略冠词,否则句子不符合英语语法。
grammar · medium
易错句子He debuged the app yesterday.
正确表达He debugged the app yesterday.
debug 是重读闭音节、末尾只有一个辅音字母,变过去式时要双写 g 再加 -ed,即 debugged。
针对“调试,排除程序错误”这一义项,break 表示相反方向:使程序出现错误或无法运行;这是常见且直接的反义关系。
troubleshoot 指系统地诊断并解决各类设备、系统或流程中的问题,范围不限于编程;而 debug 专指检查程序代码并修正其中的错误。
fix 是通用动词,表示修理任何损坏的事物,不一定涉及代码分析;而 debug 特指定位并消除程序中的错误。
test 指运行或检查程序以发现错误,侧重验证是否正常;而 debug 是在发现错误后进一步定位并修正。
调试代码
You can use this tool to debug code quickly.
你可以用这个工具快速调试代码。
调试程序
He spent the whole afternoon debugging the program.
他花了整个下午调试这个程序。
调试软件
The team is working to debug the software before release.
团队正在发布前调试该软件。
排查并修复问题
We need to debug the issue affecting the login page.
我们需要排查并修复影响登录页面的问题。
调试系统
It can be difficult to debug the system when errors are hard to reproduce.
当错误难以复现时,调试系统可能很困难。
de-(去除,逆转)+ bug(程序错误)。同前缀词:decode、defrost;同根词:bug(错误)。
debug 指找出并移除程序中的 bug(错误)。
程序员通过检查代码来定位和修复问题。
调试过程中需要反复测试以确认错误已修复。
编译时产生的报错往往需要 debug 来处理。
程序崩溃(crash)时,开发人员常需 debug 查找原因。
调试程序比最初编写程序要难上一倍。
Kernighan wrote, 'Debugging is twice as hard as writing the program in the first place.'
克尼汉写道:“调试程序比最初编写程序要难上一倍。”
最有效的调试工具仍然是认真思考,再加上巧妙地放置打印语句。
In 'The Practice of Programming', Kernighan notes, 'The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.'
在《编程实践》中,克尼汉指出:“最有效的调试工具仍然是认真思考,再加上巧妙地放置打印语句。”
Dictionary facts from ECDICT, WIKTIONARY.