473,805 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sccript debugging in Visual Studio

I am trying to debug the client script of a CustomValidator , but VS
seems to ignore it completely. This is waht I do:

Enable script debugging in Internet Explorer
Launch the page from Internet Explorer
In VS set a breakpoint in the script
Attach the IExplore debug process
Operate on the page to cause the script to run.

But all the hppens is that both the client side script and server side
script run, but no breakpont is executed

Am I missing something?

The script is javascript.
John L
Nov 19 '05 #1
4 1401
setting a breakpoint in the script will not work. after attaching to IE,
open running documents, and set the breakpoint there.

-- bruce (sqlwork.com)

"gemel" <jo***@glenavon 1.demon.co.uk> wrote in message
news:s4******** *************** *********@4ax.c om...
| I am trying to debug the client script of a CustomValidator , but VS
| seems to ignore it completely. This is waht I do:
|
| Enable script debugging in Internet Explorer
| Launch the page from Internet Explorer
| In VS set a breakpoint in the script
| Attach the IExplore debug process
| Operate on the page to cause the script to run.
|
| But all the hppens is that both the client side script and server side
| script run, but no breakpont is executed
|
| Am I missing something?
|
| The script is javascript.
|
|
| John L
Nov 19 '05 #2
The "easy" way is the put the line debugger; into your javascript file, ie
will break and prompt to open a debub session.

Otherwise, you will have to open the webpage, then attach the Studio
debugger to the iexplore.exe process. Then step through the running
documents to find the script you are looking for and set a break point
there.

But if you have complete access to the script file, I would just use the
"debugger;" line.

bill

"gemel" <jo***@glenavon 1.demon.co.uk> wrote in message
news:s4******** *************** *********@4ax.c om...
I am trying to debug the client script of a CustomValidator , but VS
seems to ignore it completely. This is waht I do:

Enable script debugging in Internet Explorer
Launch the page from Internet Explorer
In VS set a breakpoint in the script
Attach the IExplore debug process
Operate on the page to cause the script to run.

But all the hppens is that both the client side script and server side
script run, but no breakpont is executed

Am I missing something?

The script is javascript.
John L

Nov 19 '05 #3
Bill,
Thans for the advice. However I'm not really sure you mean by the
'debugger line'

Regards

John L

On Fri, 7 Jan 2005 12:48:02 -0600, "William F. Robertson, Jr."
<th****@nameht. org> wrote:
The "easy" way is the put the line debugger; into your javascript file, ie
will break and prompt to open a debub session.

Otherwise, you will have to open the webpage, then attach the Studio
debugger to the iexplore.exe process. Then step through the running
documents to find the script you are looking for and set a break point
there.

But if you have complete access to the script file, I would just use the
"debugger;" line.

bill

"gemel" <jo***@glenavon 1.demon.co.uk> wrote in message
news:s4******* *************** **********@4ax. com...
I am trying to debug the client script of a CustomValidator , but VS
seems to ignore it completely. This is waht I do:

Enable script debugging in Internet Explorer
Launch the page from Internet Explorer
In VS set a breakpoint in the script
Attach the IExplore debug process
Operate on the page to cause the script to run.

But all the hppens is that both the client side script and server side
script run, but no breakpont is executed

Am I missing something?

The script is javascript.
John L


Nov 19 '05 #4
in your javascript

function ValidateValue( control )
{
//the debugger line is as though there is a break point defined.
//it will prompt which debugger you want to use.
debugger;

if ( control.value.l ength != 0 ) return true;

return false;
}

You probably will have to have the script debugging turned on in IE.

Tools -> Internet Options ->Advanced(tab )

Make sure "Disable script debugging" is unchecked.

bill

"gemel" <jo***@glenavon 1.demon.co.uk> wrote in message
news:4r******** *************** *********@4ax.c om...
Bill,
Thans for the advice. However I'm not really sure you mean by the
'debugger line'

Regards

John L

On Fri, 7 Jan 2005 12:48:02 -0600, "William F. Robertson, Jr."
<th****@nameht. org> wrote:
The "easy" way is the put the line debugger; into your javascript file, iewill break and prompt to open a debub session.

Otherwise, you will have to open the webpage, then attach the Studio
debugger to the iexplore.exe process. Then step through the running
documents to find the script you are looking for and set a break point
there.

But if you have complete access to the script file, I would just use the
"debugger;" line.

bill

"gemel" <jo***@glenavon 1.demon.co.uk> wrote in message
news:s4******* *************** **********@4ax. com...
I am trying to debug the client script of a CustomValidator , but VS
seems to ignore it completely. This is waht I do:

Enable script debugging in Internet Explorer
Launch the page from Internet Explorer
In VS set a breakpoint in the script
Attach the IExplore debug process
Operate on the page to cause the script to run.

But all the hppens is that both the client side script and server side
script run, but no breakpont is executed

Am I missing something?

The script is javascript.
John L

Nov 19 '05 #5

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

Similar topics

6
2512
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I just go through each file/folder and right-click, selecting "Include in project". The IDE is nice in that it checks, verifies id tags, etc. What am wondering is whether it's possible to debug my ASP website using the MS Visual Studio.NET's...
1
4876
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 in msvsmon.exe on the remote machine, however, the client box with visual studio displays error: "Unable to connect to the mricosoft visual studio remtoe debugging monitor named 'the box name' the micorosft visual studio remote debugging monitor...
1
2537
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 in msvsmon.exe on the remote machine, however, the client box with visual studio displays error: "Unable to connect to the mricosoft visual studio remtoe debugging monitor named 'the box name' the micorosft visual studio remote debugging monitor...
0
7341
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.