# 6.7.46 SHOW DEBUG

Part of: [6 Language](6-language.md) › [6.7 Data Introspection Language (DIL)](6-7-data-introspection-language-dil.md)

### Syntax

**SHOW** **DEBUG** [**BY** **NAME**]\
[_post_processing_option_]\
[_output_redirecting_option_]

### Description

Show (i.e. get) the status of the debug mechanism.

### Parameter(s)

_post_processing_option_ – optional option that transforms the result set according to the programmer’s needs, such as ordering or truncating (please refer to the section [PROCESSING](6-2-processing.md) for additional information).

_output_redirecting_option_ – optional option that specifies the cursor in use, an HDF5 object (i.e. dataset or attribute), a (text, binary, or Excel) file, or memory (i.e. user-defined variable) to write the result set into (please refer to the subsection [INTO](6-3-2-into.md) for additional information). If not specified, the cursor in use is populated with the result set instead (please refer to the chapter [CURSOR](4-cursor.md) for additional information).

### Return

If the keyword BY NAME is not specified, it returns the status of the debug mechanism as an [HDFQL_INT](5-1-constants.md#hdfql_int), which can either be [HDFQL_ENABLED](5-1-constants.md#hdfql_enabled) or [HDFQL_DISABLED](5-1-constants.md#hdfql_disabled) depending on whether the debug mechanism is enabled or disabled, respectively. Otherwise, if the keyword BY NAME is specified, it returns the status of the debug mechanism as an [HDFQL_VARCHAR](5-1-constants.md#hdfql_varchar), which can either be “ENABLED” or “DISABLED”.

### Example(s)

```hdfql
# enable debug mechanism (i.e. debug messages will be displayed when executing operations) 
SET DEBUG ENABLE 

# show (i.e. get) status of the debug mechanism (should return 0 (i.e. HDFQL_ENABLED)) 
SHOW DEBUG 

# disable debug mechanism (i.e. debug messages will not be displayed when executing operations)
SET DEBUG DISABLE 

# show (i.e. get) status of the debug mechanism (should return -1 (i.e. HDFQL_DISABLED)) 
SHOW DEBUG 

# show (i.e. get) status of the debug mechanism by name (should return "DISABLED") 
SHOW DEBUG BY NAME
```
