# console

Print logs into the debugging panel. The console is a global object that can be accessed directly.In the WeChat guest, output logs to vConsole.

# method

# console.debug()

Print the debug log to the debug panel

# console.log()

Print log to debug panel

# console.info()

Print the info log to the debug panel

# console.warn()

Print the warn log to the debug panel

# console.error()

Print the error log to the debug panel

# console.group(string label)

Create a new group in the debugging panel. Any subsequent output content is added a shrink that indicates that the content belongs to the current group.The group ends after calling console.groupEnd .

# console.groupEnd()

End the group created by console.group

# Note

  • Due to the limited functionality of vConsole and the differences in support of console methods among different clients, developers are advised to use only the methods provided in this document in Weixin Mini Program.
  • See Debugging