Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and Asp.net in visual studio? 1

Status
Not open for further replies.

rahmanjan

Programmer
Apr 13, 2003
180
AU
hI ALL,

I wonder if there is any possibility to test the Javascript code in debug mode where i will be able to loop through the code by pressing F8?

regards
 
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.

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top