For dynamic cases it doesn't
here is sample:

On Sat, Mar 14, 2009 at 9:38 PM, Eric Jung <[email protected]> wrote:

>
>
> On Sat, Mar 14, 2009 at 10:31 AM, joe ertaba <[email protected]> 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.
>
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to