在 WinDBG 中使用源代码行号设置断点 [英] Setting break point using source code line number in WinDBG

查看:45
本文介绍了在 WinDBG 中使用源代码行号设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 WinDBG 中使用 bp、bm 命令根据函数名称设置断点有没有办法在源代码行号上设置断点

I am aware of setting breakpoint base on function name in WinDBG using bp, bm commands is there a way to set break point break on source code line number

 <some command> 20

意味着它应该在第 20 行设置断点

means it should set breakpoint at line 20

提前致谢

推荐答案

bp `source.c:12`

或者,您可以在 WinDBG 中加载源文件,将光标设置为要设置断点的行,然后按 F9.

Optionally, you can load the source file in WinDBG, set the cursor to the line you want to set a breakpoint to, and hit F9.

也可以尝试 .hh bp 以获取更多信息

Also try .hh bp for more info

这篇关于在 WinDBG 中使用源代码行号设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆