# Debugging

# vConsole

On the Weixin, if you want to view the contents of the APIs output such as console.log, console.error, etc., click on "Open Debug" in the menu that opens in the button at the top right corner of the screen. At this point, Mini Program will exit. After reopening it will find a vConsole button in the lower right corner. Click the vConsole button to open the log panel.

On the Weixin, APIs such as console.log cannot output objects that have circular references. Suppose you try to output an object a that has a circular reference according to the codes as follows:

var a = {}
a.b = a
console.log(a)

It will produce such an error

An object width circular reference can't be logged
点击咨询小助手