473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

How to debug client-side script (javascript) from VS2003 or VS2005?

ABC
How to debug client-side script (javascript) from VS2003 or VS2005?
Dec 29 '05 #1
3 2086
javascript:window.alert(document.getElementById("c trl_id").form.id);

You'll find the above statement very useful in detecting "form deteched
controls because of improperly closed tag".

Anyway, you'll want to insert window.alert() statement everywhere when
debugging to act as breakpoint for your javascript functions.

And I also find the "Javascript Console" of Firefox very useful.

"ABC" <ab*@abc.com> ¼¶¼g©ó¶l¥ó·s»D:%2***************@tk2msftngp13.phx. gbl...
How to debug client-side script (javascript) from VS2003 or VS2005?

Dec 29 '05 #2
Try method in article, Debug JavaScript in ASP.NET Apps, in following URL:

http://devcenter.infragistics.com/Ar...ArticleID=2183

HTH

Elton Wang

"ABC" wrote:
How to debug client-side script (javascript) from VS2003 or VS2005?

Dec 29 '05 #3
Here are 2 ways:

1. put in the 'debugger' statement. When the browser reaches this statement,
it will pop up a message box asking if you want to debug. You can then
select a new or existing instance of VS and go from there. You must have
debugging enabled in your browser and specify that you want to be notified
of every script error, or else you won't get this pop up.
2. Attach to the iexplorer.exe process that is running your page using VS.
You should be able to set breakpoints, etc.

However, as an aside, method 2 though this does sometimes work for me,
sometimes it does not. It seems to be sort of flaky, and sometimes it just
won't stop at the breakpoints. #1 is pretty reliable, but you have to
remember to remove the debugger statements when you are done

"ABC" <ab*@abc.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
How to debug client-side script (javascript) from VS2003 or VS2005?

Dec 29 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dan Perl | last post by:
Is there a mechanism or an idiom for adding code for debugging so that it can easily be removed in the production code? I am thinking of something similar to the C/C++ preprocessor statements with...
6
by: william | last post by:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET? I tried to attach the debugger to the host process, but failed, got error "unable to attach the process. There is no managed...
0
by: Ralf Pelzl | last post by:
Hello, i've create a Web-project on an IIS6.0 (remote server running Win2003). I can debug that but only if i log in on the server locally. And i must be the same user as on the client machine. If...
2
by: BA | last post by:
Hello, We use the Debug View from sysinternals for BizTalk development and testing. The remote feature is very useful since you can login to any server and see the debugging statements. ...
1
by: umen | last post by:
Hello im build very simple ATL server component (takes string from client an returns uppercase string) i like to debug this string from visual studio so i could see wha appends when i invoke the...
1
by: Sorin Sandu | last post by:
When I try to debug from a client I get Error trying to run project: Unable to start debugging on the web server. Not enough storage is available to complete this operation. What can I do ?
10
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New...
11
by: serge | last post by:
When i debug a trigger is it possible to add a WATCH on the INSERTED or DELETED? I think not, at least I couldn't figure out a way to do so. Does someone have a suggestion on how I can see the...
5
by: perspolis | last post by:
Hi all I have a webservice that I want to debug it line by line.. I enabled the Debug option in WeConfig. but I can't debug that and when I set a break point for it,that dosen't work .. thanks...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.