What's the best way for debugging my code?

Hi All,

I am trying to find out the best way to setup debugging for my Ionic 3.9.2 application.
Will there be a stack trace given exactly where in the code is the problem?

I couldn’t find it on Ionic website.

Can somebody please point me in the right direction?

Thanks!