[Project_owners] Debugging errors dynamically
joe ertaba
belaviyo at gmail.com
Sat Mar 14 12:12:54 PDT 2009
For dynamic cases it doesn't
here is sample:
On Sat, Mar 14, 2009 at 9:38 PM, Eric Jung <eric.jung at yahoo.com> wrote:
>
>
> On Sat, Mar 14, 2009 at 10:31 AM, joe ertaba <belaviyo at gmail.com> wrote:
>
>> Hi Eric
>>
>> It works but *it cant handle line number correctly*
>>
>
> It always displays the line numbers correctly for me.
>
Create multiline textbox with id = "MyId"
then use eval for executing it's code
eval (document.getElementById(" MyId").value)
If there is an error in textbox's script, line number always be same!
Here is an article about it:
http://www.almaden.ibm.com/u/bartonjj/fireclipse/test/DynLoadTest/WebContent/DynamicJavascriptErrors.htm
>
>
>
>>
>> I have one more problem:
>> *Can anybody help me how to add breakpoints to my script*
>
>
> In IE, you can use the *debugger* keyword in your script. Not sure if
> spidermonkey/tracemonkey support that keyword or not... but give it a try.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20090314/f425b623/attachment.html>
More information about the Project_owners
mailing list