Re: How to catch parser errors?

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>

Michael Vincent van Rantwijk wrote:

> Michael Vincent van Rantwijk wrote:
> 
>> Martin Honnen wrote:

>>> ex is likely an object with properties, look at that in the debugger, 
>>> it probably has properties like
>>>  ex.result
>>>  ex.name
>>>  ex.message
>>>  ex.lineNumber
>>>  ex.columnNumber
>>> which give you the components of that string you see with dump(ex).
>>
>>
>> Ugh, I'm only 13 (turn 14 in December) and I don't know s--t about 
>> debuggers (:

The interface exposed by ex is likely
  <http://www.xulplanet.com/references/xpcomref/ifaces/nsIException.html>

As for debugggers, running Venkman, the JavaScript debugger, is not that 
difficult, at least if you use an 1.7 release build. Not sure whether 
anyone currently takes care of keeping Venkman in shape to run with Deer 
Park branch or 1.9 nightly trunks.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
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.