From: Erskine, C. <chr...@ed...> - 2005-01-20 11:37:04
|
I answered this first on the devel list since Amy sent the request to both lists. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 _____ From: htm...@li... [mailto:htm...@li...] On Behalf Of Erskine, Chris Sent: Wednesday, January 19, 2005 1:00 PM To: htm...@li... Subject: RE: [HtmlUnit] Debugging JavaScript Errors This is not something added to the script but done using a logging package. I use log4j for logging. With log4j, you use a configuration file to enable the logging. It is in this configuration file that you enable the logger for com.gargoylesoftware.htmlunit.javascript. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 _____ From: htm...@li... [mailto:htm...@li...] On Behalf Of Amy Irons Sent: Wednesday, January 19, 2005 11:26 AM To: htm...@li... Subject: [HtmlUnit] Debugging JavaScript Errors Hello, I have been using htmlUnit-1.4 for the last couple of weeks, and I am having difficulty getting good debugging support from it. I would like it to print a specific JavaScript file name and specific line number that is causing an error. I have referenced the JavaScript Engine page and read the section on "Debugging JavaScript Errors". There is the following line that states, "If you set 'com.gargoylesoftware.htmlunit.javascript' to debug level, the inline code will be logged with the wrapper function to help you determine what line of code is failing." Can you explain how I would go about setting this in my test script? Thank you in advance, Amy |