15

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?

Tomasz
  • 2,051
  • 3
  • 31
  • 64

3 Answers3

19

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.

dev
  • 1,648
  • 16
  • 25
  • also, don't write JavaScript code in html, write JavaScript code in separate JavaScript editor. – qnguyen Dec 07 '17 at 06:02
2

You can also look on the Sources tab for an item called (no domain). The file inside it has your JS and you can set breakpoints.

enter image description here

Nelu
  • 16,644
  • 10
  • 80
  • 88
0

It is under runner - JS Bin Output - (no domain) - leduzidigo.js

enter image description here

Roy Scheffers
  • 3,832
  • 11
  • 31
  • 36