Google debug
December 25th, 2006 by Lev, Filed under: Commentary, Google, Web
I love Google’s web applications. They are cool and actually set a new standard for the Web we know today. It’s fun and educating to check out their JavaScript code. And as usual, when you dig into somebody’s code, you find surprises. For example Google use a concept of pushing JavaScript errors and debug info to the server.
Typical code section looking like:
try {
/* bla bla */
} catch(e) {
re(e);
}
function re(e) {
var t = gather_client_data();
t += get_stack_info(e);
postASYNC(t);
}
Any error/bug in the web application will be silently pushed to the server, without you even knowing it happened ![]()
It’s a nice approach to track the bugs, though I feel a bit uncomfortable when somebody is trying to hide something from me.
I understand that Google owns you anyways, having all the information on their servers. Still I want to know that something unusual is happening in the application I use.




Pingback: Alessandro "jekil" Tanasi blog