I’m considering creating a simple remote debugging application for Javascript. Actually, I want to provide an object to Firebug Lite and let it do all the job.
So, can I get an object from one page, serialize it, send it to server and then to another browser and finally see the same results in Firebug Lite (on that other client) as I would see on the first browser (with doing “console.dir(obj)”)? Is it possible to do?
Plain answer: no. You’ll have to serialize your object to some kind of string. It could be XML, or JSON, or a format you make up, like:
If your object contains objects, you could use the serializer function recursively.