views:

38

answers:

1

I want to write some Debugging Tools. First of them would be a Smalltalk like object browser. But i need some API's to extract methods from objects, dumping local and global variables and the stacktrace.

It's okay if this is Webbrowser specific. But please tell me which Webbrowser has an documented API for this.

EDIT: I would prefer a pure Javascript API, but something like an COM interface is also fine as long as it is well documented and has sample code.

+4  A: 

Take a look at https://addons.mozilla.org/en-US/firefox/addon/216/ (Javscript Debugger) or FireBug for Firefox. Both are open source and can give you the details.

Another option is the V8 Javascript engine for Chrome

Both you give you an idea on how to implement your own debugging tools

Jerry
Thanks unfortunately that was the reason why i wrote documented API. Firefox documentation is terrible. And Venkman code is even worse + the fact that this is only C level XP_COM.
Lothar
That's a problem with developer tools in general, especially free ones. The docs almost always suck. Have you looked at Webkit/Safari?
Jerry