{"id":241,"date":"2010-12-14T13:03:00","date_gmt":"2010-12-14T05:03:00","guid":{"rendered":"http:\/\/blog.dynox.cn\/?p=241"},"modified":"2010-12-14T13:03:00","modified_gmt":"2010-12-14T05:03:00","slug":"%e7%94%a8windbg%e6%9b%bf%e4%bb%a3vsjitdebugger","status":"publish","type":"post","link":"https:\/\/blog.dynox.cn\/?p=241","title":{"rendered":"\u7528Windbg\u66ff\u4ee3VSJitDebugger"},"content":{"rendered":"<div class=\"gruber-markdown\"><p>\u4e60\u60ef\u4e86Windbg\uff0c\u51c6\u5907\u7528Windbg\u66ff\u4ee3Vistual Studio\u7684VSJitDebugger.exe\u6765\u505aPostmortem Debugger\u3002\u4f46\u5c1d\u8bd5\u4e86\u4e0b\u9762\u4e24\u79cd\u529e\u6cd5\u90fd\u6ca1\u6709\u6210\u529f\uff1a<\/p>  <ol>   <li>1, Windbg \u2013I \uff08\u8bbeWindbg\u4e3a\u9ed8\u8ba4\u7684debugger\u5e94\u5bf9Unhandled User Mode Exceptions\uff09<\/li>    <li>2, \u76f4\u63a5\u6539\u6ce8\u518c\u8868:[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug]<\/li> <\/ol>  <p>\u76f4\u5230\u5728<a title=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff542967.aspx\" href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ff542967.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ff542967.aspx<\/a>\u91cc\u624d\u770b\u5230\uff0c64\u4f4d\u7cfb\u7edf\u91cc\u5bf964\u4f4d\u548c32\u4f4d\u7a0b\u5e8f\u6709\u4e0d\u540c\u7684\u8bbe\u7f6e\uff1a<\/p>  <blockquote>   <p>1, A failing 64-bit application will be debugged according to the settings stored in the <strong>\\\\HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug<\/strong> key.<\/p>    <p>2, A failing 32-bit application will be debugged according to the settings stored in the <strong>\\\\HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug<\/strong> key. However, if the <strong>Debugger<\/strong> value in this key specifies an application in the <em>%windir%\\system32<\/em> directory, Windows will look in <em>%windir%\\syswow64<\/em> instead. <\/p> <\/blockquote>  <li>   <p>\u5c06\u4e24\u5904\u7684AeDebug\u90fd\u8bbe\u6210Windbg\u540e\uff0c\u5206\u522b\u5bf964\u4f4d\u548c32\u7a0b\u5e8f\u8fdb\u884c\u6d4b\u8bd5\uff0cWindbg\u88ab\u52a0\u8f7d\u5e76\u6210\u529fattach\u5230\u95ee\u9898\u8fdb\u7a0b\u4e0a\u3002<\/p> <\/li>  <blockquote>   <p>D:\\Documents&gt; type AeDebug-Windbg.reg<\/p>    <p>Windows Registry Editor Version 5.00<\/p>    <p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug]     <br \/>&quot;UserDebuggerHotKey&quot;=dword:00000000      <br \/>&quot;Debugger&quot;=&quot;\\&quot;C:\\\\Program Files\\\\Debugging Tools for Windows (x64)\\\\windbg.exe\\&quot; -p %ld -e %ld -g&quot;      <br \/>&quot;Auto&quot;=&quot;1&quot;<\/p>    <p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug\\AutoExclusionList]     <br \/>&quot;DWM.exe&quot;=dword:00000001<\/p>    <p>     <br \/>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug]      <br \/>&quot;UserDebuggerHotKey&quot;=dword:00000000      <br \/>&quot;Debugger&quot;=&quot;\\&quot;C:\\\\Program Files\\\\Debugging Tools for Windows (x64)\\\\windbg.exe\\&quot; -p %ld -e %ld -g&quot;      <br \/>&quot;Auto&quot;=&quot;1&quot;<\/p>    <p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug\\AutoExclusionList]     <br \/>&quot;DWM.exe&quot;=dword:00000001<\/p><\/blockquote><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4e60\u60ef\u4e86Windbg\uff0c\u51c6\u5907\u7528Windbg\u66ff\u4ee3Vistual Studio\u7684VSJitDebugger.exe\u6765\u505a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[157,156,155,65],"views":41949,"_links":{"self":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts\/241"}],"collection":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=241"}],"version-history":[{"count":0,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts\/241\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}