# Real machine debugging 2.0

Weixin DevToolsReal machine debugging 2.0Function, can help developers use tools to debug the real machine on the Mini Program performance, but also includes the ability to analyze performance. Open the real machine debugging 2.0 Please refer to the steps of[Real Machine Debugging 2.0 Document >]((Devtools /remote-debug-2))。

# Memory debugging

Only supports Android devices

Developers can usememoryPanel, get the Mini Program logic layer of the JS Heap memory snapshot, analysis of memory distribution, troubleshooting memory leaks.

Detailed instructions for use can be found Chrome ofMemorypanel

# JavaScript Profiler

Only supports Android devices

Developers can useJavaScript ProfilerPanel, the analysis of the Mini Program logic layer of the JS Implementation. To analyze Mini Program code injection during startup, you can use the debugger To break point.

// app.js
debugger

App({
  onLaunch() {}
})

Detailed instructions for use can be found Chrome ofJavaScript Profilerpanel