Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug typescript in Ionic2

Tags:

ionic2

I use typescript in my Ionic 2 project . How to debug my typescript files ? I try to without webpack file , But it is not a good solution for that !!Can you help me ?

like image 484
user3714585 Avatar asked Oct 30 '22 10:10

user3714585


1 Answers

To debug your application, use the keyword debugger in your code which will set the break point

function myBrokenFunction() {
      debugger;
      // do other stuff
    }

Check here for details

like image 82
AishApp Avatar answered Jan 04 '23 14:01

AishApp