You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Outside of UWP app, OutputDebugString works fine.
But if I try a direct call to OutputDebugString from inside a UWP style app (Windows 10), DebugView++ never shows the message.
I would like to observe OutputDebugString output without attaching Visual Studio debugger.
Is there a way to use your DebugViewPP with UWP ?
It should be available because SysInternals Debug View is able to show UWP messages.
This isn't anything I can do (I think) the hooks that SysInternals Debug View is using are kernel hooks that I can't access, (if anybody knows how to do it, please chime in)
However, you can open send UDP or TCP messages to debugview++ from any application...
The problem is, you want to hook into the DbgPrint calls that other applications are calling, this is possible if you write a small kernel driver and I believe this is what Dbgview does. At startup it exacts a .dll, containing the kernel driver that hooks into DbgPrint and copies the messages into a piece of shared memory, that is then retrieved by dbgview. I don't have the knowledge/experience to do this. And although I would like it if debugview++ could do this, I don't consider it worth my time to learn this. The use-cases where I really needed it, I just write messages to a logfile and tail that using debugview++, or send UDP messages.
Activity
otrejoso commentedon Jun 19, 2020
Has there been any traction to fix this? I just stumble upon this bug on one my apps.
hummeleBop commentedon Aug 2, 2020
There is probably no easy way to get debug information from an uwp APP.
I use windbg preview from the microsoft store for this.
janwilmans commentedon Aug 3, 2020
This isn't anything I can do (I think) the hooks that SysInternals Debug View is using are kernel hooks that I can't access, (if anybody knows how to do it, please chime in)
However, you can open send UDP or TCP messages to debugview++ from any application...
otrejoso commentedon Aug 3, 2020
Not sure what kernel hooks you were trying to access, but in the past when things are sort of prohibited in certain windows applications, and I tend to access them by loading the library that contains those functions. For more info go to: https://stackoverflow.com/questions/8696653/dynamically-load-a-function-from-a-dll
I applied this technique to create very simple call stack in one of my window store applications calling forbidden class from kernel32.dll and Dbghelp.dll.
janwilmans commentedon Aug 4, 2020
The problem is, you want to hook into the DbgPrint calls that other applications are calling, this is possible if you write a small kernel driver and I believe this is what Dbgview does. At startup it exacts a .dll, containing the kernel driver that hooks into DbgPrint and copies the messages into a piece of shared memory, that is then retrieved by dbgview. I don't have the knowledge/experience to do this. And although I would like it if debugview++ could do this, I don't consider it worth my time to learn this. The use-cases where I really needed it, I just write messages to a logfile and tail that using debugview++, or send UDP messages.
janwilmans commentedon Jul 28, 2025
@m417z kindly provided a PR that might fix this, I will have look if I can include it in this weeks update