|
From: David D.K. <ddk...@ki...> - 2005-01-20 05:30:02
|
My guess would be to set it as a system property:
System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug");
Note that you could also set it on the command-line when invoking the=20
JVM, but the above Java code should work as well. (I have not tried=20
this feature myself, though.)
Dave
On Jan 19, 2005, at 12:30 PM, Amy Irons wrote:
> Hello,
>
> I have been using htmlUnit-1.4 for the last couple of weeks, and I am=20=
> having difficulty getting good debugging support from it. I would like=20=
> it to print a specific JavaScript file name and specific line number=20=
> that is causing an error.
>
> I have referenced the JavaScript Engine page and read the section on=20=
> =93Debugging JavaScript Errors=94. There is the following line that=20
> states, =93If you set 'com.gargoylesoftware.htmlunit.javascript' to=20
> debug level, the inline code will be logged with the wrapper function=20=
> to help you determine what line of code is failing.=94
>
> Can you explain how I would go about setting this in my test script?
>
> Thank you in advance,
>
> Amy
>
|