I don't have ASP.NET, so I can't run your code.
Though what I see is that inside your initializeModelView() function you
have another fileSurveillanceModel variable. Make sure you didn't mix them
up.

Sebastian

On Fri, Aug 17, 2012 at 10:11 AM, sdalby <[email protected]> wrote:

> Hi Jan
>
> Thanks for your answer. What I am struggling with is these two
> javascripts. It is based on calling an ASPX WebMetod, so it can be hard to
> reproduce
>
> The problem I ran into was here:
>
>         $(document).ready(function () {
>             var fileSurveillanceModel = initializeModelView();
>             var i = 0;
>         });
>
> The i=0 statement is only intended as a breakpoint. The problem I ran into
> was, that if I simply run until 'var i = 0' is reached,
> fileSurveillanceModel is 'undefined'. If I step through initializeModelView
> it is assigned correcly.
>
> At least this how I interprete the result. I am an experience programmer
> but new to this browser based world
>
> TIA
>
> /Søren
>
> Den torsdag den 16. august 2012 16.13.40 UTC+2 skrev Jan Honza Odvarko:
>>
>> It could be a bug.
>>
>> Could you please provide a page with the code you are debugging
>> so, we can try it on our machines?
>>
>> Honza
>>
>> On Aug 16, 4:07 pm, sdalby <[email protected]> wrote:
>> > I have just tried to debug code where a variable returned by a function
>> remaind undefined when i simply step over it. But if I choose to dig into
>> the function and passes over all steps in the function, the variable is
>> initialized with the desired result.
>> >
>> > Is this known/intenden behaviour?
>> >
>> > I admit that I am new to JavaScript and thus javascript debugging, so
>> maybe I am missing something
>> >
>> > TIA
>> > /Soeren
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Firebug" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> https://groups.google.com/forum/#!forum/firebug
>

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to