Debugging JSBin with Chrome
Asked Answered
A

3

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?

Anuria answered 19/5, 2014 at 13:49 Comment(0)
E
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.

Egyptology answered 28/6, 2014 at 22:7 Comment(1)
also, don't write JavaScript code in html, write JavaScript code in separate JavaScript editor.Abulia
P
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

Pandolfi answered 3/2, 2017 at 22:0 Comment(1)
this seems to no longer be correct...I don't see any '(no domain)' item. Does anyone have an update?Flavor
D
0

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

enter image description here

Decolorize answered 10/9, 2018 at 11:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.