fbpx

Debout32()

  • Karl-Heinz Rauscher
  • Karl-Heinz Rauscher's Avatar Topic Author
  • Offline
More
1 month 4 weeks ago #1 by Karl-Heinz Rauscher
Debout32() was created by Karl-Heinz Rauscher
Guys,

no real problem ...

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)


is there anything that i´ve overlooked ?


regards
Karl-Heinz

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic Debout32()
Hi Karl-Heinz,

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.

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Karl-Heinz Rauscher
  • Karl-Heinz Rauscher's Avatar Topic Author
  • Offline
More
1 month 4 weeks ago #3 by Karl-Heinz Rauscher
Replied by Karl-Heinz Rauscher on topic Debout32()
Hi Chris,

the XIDE output is:

***** 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()

regards
Karl-Heinz

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #4 by Chris Pyrgas
Replied by Chris Pyrgas on topic Debout32()
Hi Karl-Heinz,

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.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.