本文介绍了CDB命令用于根据行号设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一组用于根据行号设置断点的CDB命令?
Is there a set of CDB commands for setting a breakpoint based on a line number?
似乎没有直接。实际上,CDB的知识似乎陷入黑洞,在互联网上越来越难找到资源。
It seems that there is no "direct" one. Actually it seems that CDB knowledge is falling into a black hole and it's getting harder and harder to find resources on the Internet.
我的CDB设置
及以后我添加来源
目前,我将一个硬编码的断点与mixin相结合
Currently I put hard-coded breakpoints with a mixin
enum brk = "debug{asm{int 3;}}";
// code
mixin(brk);
但这不是一个可行的解决方案。
But it's not a viable solution.
推荐答案
在源行模式下破解的语法很好地解释了或,例如:
The syntax to break in source line mode, is well explained here or here, e.g:
并停止在特定行:
这篇关于CDB命令用于根据行号设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!