Solution to debugging eval code with JSD interface

"John J. Barton" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Message-ID <[email protected]>
Thanks to hints from people here, I found a way to debug eval() code
using the current JSD interface. I track all jsdIScript objects created
using onScriptCreated. For objects from eval() calls I create a maps
indexed by jsdIScript.tag giving the eval() source buffer and new
baseLineNumber.  Then whenever the debugger needs source (and would use
jdsIScript.fileName) I check these maps.  Details are here:

http://www.almaden.ibm.com/cs/people/bartonjj/fireclipse/test/DynLoadTest/WebContent/DynamicJavascriptErrors.htm

I will be working to help Joe Hewitt include this in Firebug and to help
the Eclipse ATF team to include this in their debugger.

John.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.