3 ms·
Don't browsers have some of the best dev tools out there? For example, you can use the `debugger`[0] statement in your JS code to trigger the in-browser debugge
by bbkane 2y ago
Don't browsers have some of the best dev tools out there? For example, you can use the `debugger`[0] statement in your JS code to trigger the in-browser debugger when that statement is hit (its basically setting a breakpoint).
0: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- do_not_redeem 2y agoThat's table stakes for a programming language these days I think. JS: debugger; C#: System.Diagnostics.Debugger.Break(); Rust: std::intrinsics::breakpoint(); Go: runtime.Breakpoint(); Zig: @breakpoint();
- bbkane 2y agoAgreed, but I wonder what the OP is missing in their webdev debugging journey that exists elsewhere
- eggdaft 2y agoBrowser debugging tools are very basic. Their UI is generally awful. Spend a few days debugging in PyCharm and you'll scream when you open developer tools.