Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot set breakpoint at if else statement in Chrome developer tool

In the old version of chrome, I can set breakpoint at if else statement to view the value of object in if condition.

But when upgraded chrome to the latest version, I cannot do it now. The breakpoint is auto place inside the if block. It make difficult to debugging, has to place two breakpoint if I want to debug at if else statement

My source code is not minify or truncate anything else.

like image 248
dangquang1020 Avatar asked Jan 22 '18 08:01

dangquang1020


1 Answers

As for Chrome 67, a workaround is that you need to click on the same line in the name.js file to set a breakpoint. A breakpoint will be added automatically in the corresponding name.ts file. It's kind of awkward, but at least makes you stop at the if statement.

like image 160
Lou Avatar answered Sep 17 '22 16:09

Lou