# wx.setEnableDebug(Object object)

Start from base library version 1.4.0. Please remaining backward compatible.

Sets whether to enable/disable debugging switch that also takes effect in the official version.

# Parameters

# Object object

Attribute Type Default Required Description
enableDebug boolean Yes Indicates whether to enable debugging
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

# Sample Code

// Enable debugging
wx.setEnableDebug({
  enableDebug: true
})

// Disable debugging
wx.setEnableDebug({
  enableDebug: false
})

# Tips

  • Another method is provided to enable debugging in the official version. First, enable debugging in the developer version or test version, and then switch to the official version to view vConsole.
点击咨询小助手