Cannot use DebugView alongside VS 2005 (MFC)

Posted on 2009-02-22
Last Modified: 2013-12-03
Say I have a TRACE statement in my code. It shows in the output window of the VS environment, but I never in the DebugView console I run alongside.  

If I run the program outside the VS then the DebugView shows the TRACEs but I need it to show them when I run from within the VS.

Any suggestions?

Question by:yossikally
    LVL 19

    Expert Comment

    Try Ctrl+F5 while in VS or on the menu click on Debug -> Start Without Debugging. The VS debugger is probably intercepting the TRACE output and DebugView does not receive it.

    Author Comment

    So no way to enjoy best of both: break points and variable values in the debugger, and Debugview for tracing?
    LVL 86

    Expert Comment

    Well, VS shows you the debug output also - just choose "Debug|Windows|Output" and you will see the same trace output that DebugView displays.

    Author Comment

    But then I have to switch back and forth from debugging window to output window, as well as lose some information included in DebugView (like PID, time, etc.)
    LVL 19

    Accepted Solution

    The best I can think of would be to pin the Output and Autos windows next to each other. I believe if the VS debugger is active it will intercept the TRACE output so that DebugView will not receive it and if the application is not running in debug mode you will not have several feature provided by VS for debugging. I am not aware of an option that would allow both.

    Author Closing Comment

    ok, as good as it gets, I guess.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
    For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now