Follow

debugging javascript:
function f() {
...
while (many iterations) {
let x = ...
.....
... something thriws here because of x....
}
...
}

now becomes:

function f() {
try {
...
while ....
var x = ...
...
...
}
catch (e) {
console.error(x);
throw e;
}
}

every odd feature counts :)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.