VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/docs/WindbgPython.txt@ 76563

最後變更 在這個檔案從76563是 69576,由 vboxsync 提交於 7 年 前

some windbg+python notes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 455 位元組
 
1$Id: WindbgPython.txt 69576 2017-11-04 08:57:41Z vboxsync $
2
3Just a couple of useful windbg commands:
4
5Show python filenames + frame line number (not statement) up the call stack:
6!for_each_frame ".block { dt python27!_frame qwo(!f) f_lineno; da qwo(qwo(qwo(!f)+0x20) + 50) + 20 } "
7
8Same, alternative version:
9!for_each_frame .if ( $spat("${@#FunctionName}","*PyEval_EvalFrameEx*") ) { .printf "python frame: line %d\npython frame: filename %ma\n", @@c++(f->f_lineno), qwo(qwo(qwo(!f)+0x20) + 50) + 20 }
10
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette