# GetBreakOnProtectionErrors

int GetBreakOnProtectionErrors (void);

## Purpose

Returns the state of the Break on protection errors feature.

GetBreakOnProtectionErrors returns a 1 if you enable the option. If you disable debugging GetBreakOnProtectionErrors always returns 0.

For more information, refer to SetBreakOnProtectionErrors.

## Parameters

None.

## Return Value

Name | Type | Description
state | integer | Current state of the Break on Protection Errors option.
Code | Description
1 | Break on Protection Errors option is enabled.
0 | Break on Protection Errors option is disabled or debugging is disabled.