Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging JSBin with Chrome

I have problem with debugging js code written in js bin with chrome.

Everytime when i edit/click run with JS new source file is generated and old breakpoint are not being hit.

Do you have any solution for this problem?

like image 304
Tomasz Avatar asked May 19 '14 13:05

Tomasz


People also ask

How do I debug HTML in Chrome?

If you want to debug it, you should press F12 on Chrome to open the developer mode. You can see that the JS code of the current page is under the Source menu, you can set a breakpoint directly at the beginning of the script. Then you can click on the UI button or menu to start debugging(both js and backend activity ).


1 Answers

Just use a debugger statement in your code. Even though jsbin will give you a warning and won't autorun, you can still click the run button (or press ) and your code will pause on the debugger statement.

like image 70
dev Avatar answered Sep 30 '22 17:09

dev