开发者

How to list function definition in windbg like gdb?

开发者 https://www.devze.com 2023-03-03 22:25 出处:网络
In gdb I can simply list func to see the definition of func, and the lines increments each time.But in windbg I tried lsa开发者_开发问答 func,

In gdb I can simply list func to see the definition of func,

and the lines increments each time.But in windbg I tried lsa开发者_开发问答 func,

it sometimes works,but sometimes not.And even when it's working,the line doesn't increment each time I press return.

How do you check code with windbg(assume debug symbols are loaded)?


http://msdn.microsoft.com/en-gb/library/ff552114.aspx

Make sure that .lines is toggled on. You can then use l+s to display source each time you step with the debugger. You can then step through the code and source lines will be printed as you step.

http://msdn.microsoft.com/en-us/library/ff552107(v=VS.85).aspx

If you want to view the lines wihtout actuall stepping the program do lsa func to start viewing the function this will also set the current line. You can continue viewing lines by doing lsa by itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消