###User Defined Function###
_DebugReportEx

###Description###
Writes to a debugging session a formatted message

###Syntax###
#include <Debug.au3>
_DebugReportEx ( $sData [, $bLastError = False [, $bExit = False]] )


###Parameters###
@@ParamTable@@
$sData
	Data to be reported (e.g. "dllname|functionname")
$bLastError
	[optional] True if <a href="_WinAPI_GetLastErrorMessage.htm">_WinAPI_GetLastErrorMessage()</a> must be append to the data being reported
$bExit
	[optional] True if the script must be terminated
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1 (see remarks).
Failure:	0.
@@End@@


###Remarks###
According to the @error flag value the message will be formatted as follow:
0 - report "Bad return from FUNCTION in DLL".
1 - report "unable to open a dll"
3 - report "unable to find FUNCTION in DLL".

If $sData is does not contain a "|" or @error not as specified above the reported message will not be formated.
If no <a href="_DebugSetup.htm">_DebugSetup()</a> have been issued the function always returns.
@error of the caller is preserved.
@extended can be set to Windows API <a href="_WinNet_GetLastError.htm">_WinNet_GetLastError()</a> if  $bLastError = True.
Otherwise it is preserved.


###Related###
_DebugSetup


###Example###
@@IncludeExample@@
