VS2010 debug output not showing up in DbgView

Q:

I am trying to debug an application inVS2010. The code for this application has a lot of debug statements to helpidentify any error conditions. I do see these statements in the VS2010, butthose are not being shown in the DbgView. Normally, I have a number of filterssetup in DbgView which helps to easily identify & classify all the debuginformation that is being written by the debug statements. Since the VS2010debug window does not have this filter functionality, its very difficult tofind things in the debug output. Previously I was using VS2005 and theDebug.Write() calls showed up in both the VS2010 debug window as well as theDbgView window.

Is there away to redirect/duplicate VS2010 Debug window output to DbgView?


A:

Stupid question, but are you running it in debug mode under VS2010? If you are actually running it debugged then no debug output should ever get to dbgview,the code which implementsOutputDebugString first checks if a debugger is attached (and sends a debugevent if it is), otherwise it tries to find some special events and named sections and uses that to write the debug output(which is what dbgview implements)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章