r/javascript • • Apr 08 '18

Javascript Debugging Like a PRO

https://medium.com/appsflyer/10-tips-for-javascript-debugging-like-a-pro-with-console-7140027eb5f6
49 Upvotes

11 comments sorted by

View all comments

0

u/[deleted] Apr 08 '18

[deleted]

1

u/PlNG Apr 08 '18

Important to note that debugger still blocks optimizations in turbofan, so be sure to leave it out of production code entirely - the mere presence of the call to debugger stops any function optimizations, even if(false){debugger;}

1

u/ijmacd Apr 08 '18

Won't your minifier get rid of that?