ok, debout32() can´t show anything in dbgview if the reference of the x# runtime is the GAC, so i´ve changed the app references to the debug versions of both dlls, but debout32() still doesn´t show anything in dbgview.
FUNCTION Start( ) AS VOID
LOCAL uXSharpUsual AS USUAL
uXSharpUsual := "Hello X# runtime!"
// output is not visible in dbgview
debout32 ( "****** Debug msg from debout32 ******" )
// output is not visible in dbgview
XSharp.Core.Functions.DebOut32("***** Debug msg from XSharp.Core.Functions.DebOut32 *****")
// ok, output is visible in dbgview
system.Diagnostics.debug.WriteLine ("***** Debug msg from system.Diagnostics.debug.WriteLine *****" )
// ok, output is visible in dbgview
MyDebout32 ("***** Debug msg from MyDebout32 *****" )
System.Console.WriteLine(AsString(uXSharpUsual))
RETURN
FUNCTION MyDebout32 ( c AS STRING ) AS VOID
system.Diagnostics.debug.WriteLine ( c )
when i jump in ilSpy to Debout32() i see this code:
// XSharp.Core.Functions
#define DEBUG
using System.Diagnostics
public static method DebOut32(s as string ) as void
Debug.WriteLine(s)
Not sure if DbgView works with .Net apps, but I guess it probably does. Have you compiled the app with debug enabled? Additionally, you need to also have "DEBUG" globally defined, you can do that with using the command line param /define:DEBUG. XIDE does this automatically if you have set the option "Define DEBUG" in App properties/Compiler page.
If none of that works, please try running your app under the debugger (Shift+F5), then check the Output window of the IDE, do you see the messages there? If not, then there's some other problem going on.
***** Debug msg from system.Diagnostics.debug.WriteLine *****
***** Debug msg from MyDebout32 *****
the same is shown in dbgview.
the problem is that:
debout32 ( "****** Debug msg from debout32 ******" )
XSharp.Core.Functions.DebOut32("***** Debug msg from XSharp.Core.Functions.DebOut32 *****")
doesn´t show anything. Neither in the XIDE output nor in dbgview.
ok, this has very low priority. So it´s not neccessary to spend more time to investigate why
debout32() and XSharp.Core.Functions.DebOut32() doesn´t make an output. I´ll make a bookmark and good is.
The workaround is to use a own debout32()
The standard DebOut32() function does work for me, but maybe that's because I build newer versions every day, possibly the original dll was compiled without DEBUG disabled so that makes the difference. I will send you our current version of the runtime dlls to try again.