Jump to main content

##

# 1.2.5.4.5 SYS_DEBUG_Redirect Function

## C

    bool SYS_DEBUG_Redirect(const SYS_MODULE_INDEX index)

## Summary

Allows re-direction of debug system service to another console instance

## Description

This function re-directs calls to the Debug Service APIs to a different console instance.

## Precondition

None.

## Parameters

Param | Description
--- | ---
index | The index of the console to re-direct the debug system service calls to

## Returns

True - If operation is successful

False - In case of failure

## Example

    // Re-direct debug system service calls to console index 1
    if (SYS_DEBUG_Redirect(SYS_CONSOLE_INDEX_1) == true)
    {
        // SYS Debug output will now be re-directed to SYS Console Instance - 1
    }

## Remarks

None.