Re: Can't Get Debugger To Stop At A Breakpoint in VC++

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Oleg Starodumov (oleg_staro_at_hotmail.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 14:02:11 +0200


> I also included some OutputDebugString() statements in my code,
> but none of them are appearing in the Debug window.
>

If you don't see OutputDebugString() output in Debug output window,
it is possible that the DLL is actually working in another process (may be,
in a COM server process).

Try to monitor debug output using DebugView tool:
http://www.sysinternals.com/ntw2k/freeware/debugview.shtml
(Make sure "Options | Win32 PIDs" is checked).

For every debug output string, DebugView will display the process ID
in square brackets. Use this process ID to check the process the DLL
is loaded into.

If you do not see your ODS output in DbgView, display a message box
from the DLL and use it to locate the process (e.g. in Task Manager).

In addition, try to set a breakpoint in DllMain() (and insert an OutputDebugString()
there too). Will you be able to stop on the breakpoint in DllMain(), or see
the debug output string in Debug output window?

If none of the above works, please give more information about the operating system,
IE version, and the kind of plugin you are writing.

Regards,
Oleg



Relevant Pages

  • Re: Writing to the Debug Window
    ... Debug.Writeline, it writes to the screen in DebugView, but not the debug output window in the enviroment. ... to the Immediate window" ...
    (microsoft.public.vsnet.debugging)
  • Re: DirectShow Insanity
    ... and what exactly is shown in the debug output window? ... what happens if you wait for completion befor exiting the program? ... > seems to work fine - the music plays for a couple of seconds before ... > occur - you can see the debug output when running in MSDEV. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Debug output cleared
    ... After builds and especially after executions, the debug output window ... After right clicking and clearing the debug output, ... and the scroll bar keeps changing its size. ...
    (microsoft.public.vc.mfc)
  • Debug output cleared
    ... my Debug Output window. ... Now, even after closing VCand reopening it, the ... Debug Output will not display anything. ...
    (microsoft.public.vc.mfc)