angular - angular2 debugging: breakpoint not getting hit at execution only at initialization -


i'm trying debug angular2 app source map placing breakpoint in .ts file.

foo(){    //breakpoint here    console.log('bar');  } 

the breakpoint gets hit when loading component , not when executing. idea?

put debugger; in line ever want.browser pauses;


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -