473,379 Members | 1,191 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,379 software developers and data experts.

Can I use VS.net to debug code in JavaScript (.js) file?

yma
Hi,

Can I use VS.net to debug the code in the JavaScript (.js) file? Thank you.

Chris
Nov 18 '05 #1
1 1454
Sure, there is the official way of attaching to the process or you can just
put a stop statement at the line you want to, make sure script debugging is
enabled in internet explorer (enabled by default) and let the application
rip. it will bomb at the stop; statement and automatically attach the
debugger. Use the debugger to step around the stop line and then you can
debugger as normal since the debugger is already attached. As an example:

int x = 0;
x++;
x--; //we want to examine this script value

int x = 0;
x++;
stop; //debugger stops here, use 'set next statement' to point to the next
line
x--;

--
Regards,
Alvin Bruney
Got DotNet? Get it here
www.networkip.net/tidbits
"yma" <ym*@pacbell.net> wrote in message
news:eB**************@TK2MSFTNGP09.phx.gbl...
Hi,

Can I use VS.net to debug the code in the JavaScript (.js) file? Thank you.
Chris

Nov 18 '05 #2

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

Similar topics

3
by: gilgamesh | last post by:
Hi there, What's a good tool to use for debugging ASP pages which contain bunch of javascripts? Thanks, Gilgamesh
2
by: chirs | last post by:
Hi, I put the javascript code into a .js file. When it has error, the debugger in IE 6 will not should the code. Is there a debugger that allows me to debug the code in a .js file? Thanks. ...
1
by: Robert | last post by:
Simple way of writing debug print statements in your JavaScript code. You need to have enabled popups in your browser. I liked the ability to write to the java console in Netscape 4.x. This,...
2
by: apngss | last post by:
Is there any way to debug javascript in a web application? When I develop JSP pages, and it has the javascript code in it. The problem is the debugger in Java IDE (WSAD in my case) can only debug...
1
by: yma | last post by:
Hi, I have an asp.net app that I uses javascript in the html file. Can you show me how to debug javascript in vb.net. I use vb.net in vs.net. Here is a sample html file. If I cannot use...
1
by: Jonas | last post by:
Hi, I've recently found out that I'm supposed to set the debug attribute of the compilation element in web.config to false in production environments. But when I do so in my ASP.NET application,...
4
by: TARUN | last post by:
Hello all I am new to web technology, so plz excuse me for posting such a silly question . I have a code in C#.NET , ASP.NET, Javascript . I am a begginer of Javascript i don't understand...
2
by: Dinh Bao Tuyen | last post by:
Hi everyone, I can't debug javascript in VS 2005. In my VS2005, I can't find Script Explorer in menu. Can u help me???
6
by: toffee | last post by:
Hi all, I get an script error warning from IE and am not sure how to debug. I've got 3 external js file which i linked in my <head> The error warning msg is: "Problems with this webpage might...
15
by: teppic.xxviii | last post by:
Ok, so this is a little script that I've been working on and off for the past year or so, and finally I think it might be ready to be put to the ultimate test: other people! ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.