Search code examples
wechatwechat-miniprogram

Wechat Miniprogram debug page's stack


I need to see the navigation flow between my pages in wechat miniprogram. I have searched the net and have not seen how I can see the pages that are in the stack.

My question is:

Is it possible to debug the page stack in wechat miniprogram from the IDE?


Solution

  • Use the method of "getCurrentPages()" when you need. When the page stack change, the return data of method will not change.You must use it again to get the lastest data.

    Otherwise, you can use the parameter of "debug" in "app.json". With opening it, when the page stack change you can see it in the console tool.