3 ms·
I remember the day using a debugger for the first time and I asked myself, why I wasted so much time not using one. In some languages it is so easy, that you d
by sandreas 3y ago
I remember the day using a debugger for the first time and I asked myself, why I wasted so much time not using one.
In some languages it is so easy, that you don't even have to use an IDE. Let's talk about JavaScript / TypeScript... you could use the browser developer tools to set break points, but for transpiled projects with boilerplate you can also use the `debugger` statement to hardcode a breakpoint.
function test(y) {
var x = 1;
debugger;
return x * y;
}
I wish they would take it one step further and integrate the timeless debugging[1] concept everywhere, where you could step forward bug also backwards.
1: https://www.youtube.com/watch?v=eGl6kpSajag https://www.youtube.com/watch?v=eGl6kpSajag