Re: .NET 2005
- From: "Kevin Spencer" <uce@xxxxxxx>
- Date: Thu, 7 Sep 2006 07:39:17 -0400
JavaScript code can be debugged, but not in the same way as ASP.Net, because
it is client-side code. For debugging JavaScript, you set up Internet
Explorer to allow JavaScript debugging, use the Tools|Options menu, and the
Advanced tab. Uncheck the "Disable Script Debugging (Internet Explorer)"
item. Then, when a bug occurs in client-side JavaScript, IE will allow you
to launch a debugger to debug the script (usually Visual Studio). You can
also set a break point in JavaScript by adding the following line of
JavaScript where you want the debugger to break:
debugger;
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
What You Seek Is What You Get.
"Laurent Bugnion" <galasoft-lb@xxxxxxxxxx> wrote in message
news:urmC5Ff0GHA.4816@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
lasalsatx@xxxxxxxxxxxxxxxxx wrote:
Hi
I always get "This is not a valid location for a breackpoint" when ever I
try to insert a break point on the aspx html code. Any ideas?
thanks,
Victor
In my experience, setting breakpoints in inline JavaScript code doesn't
always work. The best is to place your JavaScript code in external JS
files. This has many other advantages too anyway (files are cached,
modularity, reusability...).
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
.
- Follow-Ups:
- Re: .NET 2005
- From: Laurent Bugnion
- Re: .NET 2005
- References:
- .NET 2005
- From: lasalsatx
- Re: .NET 2005
- From: Mark Rae
- Re: .NET 2005
- From: Laurent Bugnion
- Re: .NET 2005
- From: lasalsatx
- Re: .NET 2005
- From: Laurent Bugnion
- .NET 2005
- Prev by Date: Re: ClickOnce Button?
- Next by Date: Access COM object in Code behind(C#)
- Previous by thread: Re: .NET 2005
- Next by thread: Re: .NET 2005
- Index(es):