Docly Child

Enable debugging

Enable logs in WHMCS

The first step to be able to debug is to enable module logs in WHMCS.

You can configure and see logs at Configuration () > System Logs > Module logs or, prior to WHMCS 8.0, Utilities > Logs > Module logs.

Enable “Module logging”.

Enable logs in WHMCS

Enable logs in the module

The next step is to enable logs in the module.

Edit the module configuration file config.inc.php in the module directory to set the variables below:

  • $netim_debug
    If set to true, an entry in the logs will be created for each new function called in the module with its parameters (in the request) and its return (in the response).
    So, it is possible to know which parameters were given by WHMCS to the module as well as what the module returned to WHMCS for a particular function call.
  • $netim_api_debug
    If set to true, an entry in the logs will be created for every API call with its parameters (in the request) and its result (in the response).
    So, it is possible to track all communications between the module and Netim through the API.