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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client-Side debuggin?

Status
Not open for further replies.

MattWoberts

Programmer
Oct 12, 2001
156
GB
Hi,

Does anyone know how to debug client-side code (javscript) in asp/aspx files in Visual Studio .NET....I know the functionality is there somewhere but IE doesn not give me the option to debug, it just tells me what the error message was and then continues........

Thanks!

MattWobetts
 
Hi
As far as I can see, this only works when you put the code in a .js file, rather than in the html. This is a good idea anyway because VS likes to mess around with the html and can ruin your scripts sometimes, unless you set the options a certain way.

Then, in the .js file, breakpoints work fine for me (you have to press "play" as opposed to just viewing the page in the browser so that the debugging session can be set up)

Hope this helps Mark [openup]
 
Thanks,

I think thats the problem - I can't just "play" the page becasue it depnds on loads of other pages, session variables etc.. IN the olden days (before I installed .net) it used to ask me "do you want to debug?" and then load VS....I reckon there must be some way of turning that back on....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top