Debugging Best Practice?

New user here. What’s the best best practice for debugging with Cocos creator?

I can see console logs (in the browser and simulator) but I’d really like to be able to watch certain variables in realtime. I tried setting some watch variables up in Visual Studio Code but its very cumbersome.

It doesn’t show the variables until you pause it using a breakpoint and the variable scope is a bit strange to comprehend. For example watching this.someVariable…what is the scope of this when debugging??

Any tips would be gratefully received. Thanks.

Hi, you can refer to this document: