
Signature
HTH,
Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
> Here is the thing though....
>
[quoted text clipped - 72 lines]
>> >
>> > Thanks.
I get what your saying, but in that case how can a free tool like the
Microsoft Script Editor handle it right, but Visual Studio cannot.
Visual Studio does some pretty amazing things, but this is a pretty big
limitation when working with application that have javascript in them.
Why can't it just do whatever the free Script Editor does, it doesn't need
to step back into the aspx page source, if it just stepped into something
that could display where it is in the javascript that would be be a big
improvement...
I guess I begrudge paying so much for Visual Studio when it can't do
something that a free tool by the same company can do.
Also, when you debug serverside code, surely its actually the compiled IL
that is running and the pdb files tell the debugger whereabouts in the source
that is, so why can't the pdb files, or something similar, contain the info
to tell the debugger where it is?
If MS aren't looking to put this in to future versions of Visual Studio, I
think they should... its a nightmare working on ajax apps where there is
javascript code in the aspx pages.
And I know given this limitation its probably good practice to just put all
your javascript in .js files, but that doesn't help if your maintaining code
that already has a lot of javascript in the pages.

Signature
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
> Hi Phil,
>
[quoted text clipped - 89 lines]
> >> >
> >> > Thanks.
Phil Johnson - 31 Jan 2008 12:08 GMT
This guy has allegedly got debugging of javascript in aspx files workign in
VS2005.
http://www.ben-rush.net/blog/CommentView.aspx?guid=b20a27b8-66ba-43e5-b0d6-4aa11
c76d739&dotnet=consultant
Also, I've seen it working on VS 2003 with IE6, but when the guy upgraded to
IE7 it stopped working.
You can obviously do this, does anybody know of a setting etc I could change
to enable this?

Signature
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
> I get what your saying, but in that case how can a free tool like the
> Microsoft Script Editor handle it right, but Visual Studio cannot.
[quoted text clipped - 116 lines]
> > >> >
> > >> > Thanks.
Patrice - 31 Jan 2008 12:23 GMT
I'm on IE6. My first though would be that the appropriate option needs to be
checked in IE. "Tools" "Options" and make sure the "Deactive script
debugging" (translated from my french IE6 so it may vary in an english IE7)
is not checked. Could be also in Tools Options Debugging in VS but as it
follow a IE upgrade...
To be crystal clear this is for javascript script code that is embeded
inside a client side script tag inside the aspx markup (not sure where the
breakpoints was as sometimes ASPX page is quite a vague term).
--
Patrice
> This guy has allegedly got debugging of javascript in aspx files workign
> in
[quoted text clipped - 170 lines]
>> > >> >
>> > >> > Thanks.
Phil Johnson - 31 Jan 2008 12:55 GMT
Hi Patrice,
Yeah, thats right... re the javascript is in a script tag in the aspx page.
I've got the correct settings on the option you mentioned in IE because the
js files will debug fine and if I put a breakpoint in the javascript in an
aspx page it does actually break and the code executing is at that point, you
can step through etc, but Visual Studio does not display the correct line as
being the current line to execute (even though when you do step through it
executes the correct line, you just can't see which line it is going to
execute on the screen).

Signature
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
> I'm on IE6. My first though would be that the appropriate option needs to be
> checked in IE. "Tools" "Options" and make sure the "Deactive script
[quoted text clipped - 183 lines]
> >> > >> >
> >> > >> > Thanks.