Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

alert()


Which didn't help much when there was a syntax error somewhere close by causing the browser to silently terminate parsing/executing the code. At least these days the browsers tend to dump error messages into the console when this happens...

In theory that could have been caught by a good jslint/syntax checker but those were a few years in the future too. Early, JS development really sucked, its only slightly better today..


> Which didn't help much when there was a syntax error somewhere close by causing the browser to silently terminate parsing/executing the code.

I recall a dramatic bug where, in 2012, I rolled out a new version of a web GUI with some JS mixed in it to an intranet audience of IE 7 and Firefox users. It initially looked good, but then reports came in that IE users couldn't use one of the buttons. After much debugging and confusion, it turned out that there was a trailing comma at the end of an array literal (i.e. `[1,2,3,]` instead of `[1,2,3]`). Firefox accepted that, but IE 7 didn't. (I think IE 8 added support for trailing commas.)


There was a very capable javascript debugger as a mozilla plugin (don't think it was an addon), years before firebug/browsers dev tools had one. It don't remember the name, it was something with a V.



Firebug was neither the first for step-by-step JS debugging, nor for poking at the DOM. Those two things were within the purview of Venkman—the original Mozilla JS debugger—and the DOM Inspector—Firebug's predecessor created in 2001 by Joe Hewitt, an ex-Netscape/AOL employee and the original author of Firebug itself. Honza's timeline is off. I've left a note in the blog comments about this.



Or, easier without popups, logging to a div (hidden or at the bottom) that you could expand/open up to see output.

Firebug was revolutionary not only for the console but the inspect tool was very needed as layouts and CSS progressed where outputs weren't enough.


How about MODI - the mouseover DOM inspector loaded as a favelet.

http://slayeroffice.com/?c=/content/tools/modi.html


Oh geez, the memories. And not happy memories, either. Those were truly the Dark Ages.


It is not async, though. Remember being young and having a bug I couldn't reproduce when alerting the state.


document.write() cringe




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: