I want to write some Debugging Tools. First of them would be a Smalltalk开发者_如何学JAVA 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.
Take a look at https://addons.mozilla.org/en-US/firefox/addon/216/ (Javascript Debugger) or FireBug for Firefox. Both are open source and can give you the details.
Another option is the Web Inspector for Chrome and Safari, Dragonfly for Opera, or F12 Dev Tools for Internet Explorer.
All of them can give you ideas on how to implement your own debugging tools.
精彩评论