Debout32() to outside app

This forum is meant for questions and discussions about the X# language and tools
Post Reply
thilef
Posts: 14
Joined: Wed May 26, 2021 5:13 pm

Debout32() to outside app

Post by thilef »

Hi all,

I try to get the output of DebOut32() on an external app like TailXp or DebugView..
On a full X# solution, I can only have output on the Output window in VS, and only if the "Enable umanaged debugging" property is checked on the Debug tab of the project property.
Is there any way to redirect outside VS ?

Thanks for help,

Thierry
User avatar
robert
Posts: 4882
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debout32() to outside app

Post by robert »

Thierry,

I think VS intercepts this, so there is no way to show this in an outside window.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Kees Bouw
Posts: 172
Joined: Wed Nov 06, 2019 11:35 am
Location: Netherlands

Re: Debout32() to outside app

Post by Kees Bouw »

Thierry,

When a Visual Studio app is run in debug mode (Start or F5), debug output created with DebOut() or System.Diagnostics.Debug.WriteLine() etc. is intercepted by Visual Studio and shows only on the Output window of Visual Studio. It does not show in DebugView (SysInternals) or in DebugView++ (https://github.com/CobaltFusion/DebugViewPP/releases).

If the app is started without debugging (Debug -> Start Without Debugging or Ctrl+F5), the debug output does show in DebugView or DebugView++.

I don't think that the setting "Enable unmanaged debugging" has anything to do with this.

Kees.
Post Reply