HDFql Reference Manual v2.6.0

6.7.46SHOW DEBUG

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 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 for additional information). If not specified, the cursor in use is populated with the result set instead (please refer to the chapter CURSOR for additional information).

Return

If the keyword BY NAME is not specified, it returns the status of the debug mechanism as an HDFQL_INT, which can either be HDFQL_ENABLED or 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, which can either be “ENABLED” or “DISABLED”.

Example(s)

# 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