###User Defined Function###
_DebugCOMError

###Description###
Sets, resets or queries the debug level for COM errors.

###Syntax###
#include <Debug.au3>
_DebugCOMError ( [$iComDebug = 1 [, $bExit = False]] )


###Parameters###
@@ParamTable@@
$iComDebug
	[optional] Debug level. Possible values are:
	-1 - Return the current settings
	 0  - Disable debugging
	 1  - Enable debugging. Output the debug info (default)
$bExit
	[optional] True if the script must be terminated
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1 if $iComDebug = 0 or 1 and sets @extended to:
		0 - The COM error handler is not initialized
		1 - The COM error handler has been initialized
		2 - The COM error handler was already active
		3 - The COM error handler is already disabled
	1 if $iComDebug = -1 and sets the @error flag and @extented to current setting:
		@error = current Debug level
		@extended = current script termination.
Failure:	0 and sets the @error flag to non-zero.
@error:	1 - $iComDebug is not an integer or &lt; -1 or &gt; 1
	2 - The COM error handler is already set to another function (= not set by this function)
	3 - <a href="_DebugSetup.htm">_DebugSetup()</a> did not run properly.  Make sure <a href="_DebugSetup.htm">_DebugSetup()</a> ran properly before calling this function
	4 - Installation of the custom error handler failed. @extended is set to the error code returned by <a href="../functions/ObjEvent.htm">ObjEvent()</a>
@@End@@


###Remarks###
Before calling this function, <a href="_DebugSetup.htm">_DebugSetup()</a> must be called first to create the debug session.


###Related###
_DebugSetup


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