I think it's pretty much all or nothing. Visual studio is simplying 'writing' text (it just happens to be javascript) to the client browser. The browser is compiling the javascript at runtime. I don't think Visual Studio has any way to debug the javascript as it is sent to the client. I'm not sure of any tools, but I'm sure there are some that exist, that will allow you to 'debug' javascript.
simple method to debuging any client level scripting, is to copy/paste it into a seperate file and test it in the browser stand alone. unless you are to the stage the server needs are fully functional and then just test it throught the browser utilizing it's error exeptions and alerts.
note: if you run your compelte pages through as you are debugging the client level portions...the errors thrown will be of the pages final output. more or less, if it says it is on line 5 but there are 30 lines of server interpruted code prior to that, you will only know the true location of line 5 (to the browser) by viewing the source after the page has loaded.
not sure on VS.NET either as I try to keep the client levels written in a text editor. seems more simple and easier to debug that way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.