top | item 34287698

(no title)

no1lives4ever | 3 years ago

When push comes to shove, go down to the most the basic of debugger tools. Print output to a tracing/console. I have had to resort to some version of temporary print statements in my code to get thru with debugging. And along the way have found many situations where those print statements or the logging/tracing equivalents introduced changes that altered the program's behavior.

I remember finding a situation where output of console.log would not match reality when debugging using chrome's debugger while working on a react app in 2019. Had to resort to making a copy of the variables to get console.log working in that situation.

When it comes to web deveopment, like others have said, it is easy to debug modern web apps with the help of source maps. We have been doing some version of that for a long time now. I remember using source maps with codeview back in the late 80s/early 90s.

discuss

order

No comments yet.