473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clientside debugging

Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
Jun 26 '06 #1
13 1599
with the client debugger of choice, attach to the ie instance of choice and
check script debugging.

-- bruce (sqlwork.com)

"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)

Jun 26 '06 #2
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?


Presumably, you mean debugging Javascript in IE...?

If so, the following is pretty much guaranteed to work:

1) Download and install the Microsoft Script Debugger
http://www.microsoft.com/downloads/d...DisplayLang=en

2) In IE, click Tools, Internet Options and select the Advanced tab and make
sure Disable Script Debugging (Internet Explorer) is NOT checked

3) In your client-side Javascript, insert the word debugger; where you want
your code to break. E.g.

<script>

function myFunction()
{
debugger; // code execution will break here
alert('Hello world');
}

4) Click F5 to start your app. When you navigate to the page in question,
you can debug your client-side Javascript just like you would debug your
server-side code i.e. with F10, F11 etc, interrogate locals, use the
Immediate window etc...
Jun 26 '06 #3
I am not able to find script debugging check box. What screen are you talking
about?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
"bruce barker (sqlwork.com)" wrote:
with the client debugger of choice, attach to the ie instance of choice and
check script debugging.

-- bruce (sqlwork.com)

"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)


Jun 26 '06 #4
Actually I have a mixed Javascript and VBscript environment. Today I am
having a problem in client-side VBScript. Will your idea work with VBScript
also?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
"Mark Rae" wrote:
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?


Presumably, you mean debugging Javascript in IE...?

If so, the following is pretty much guaranteed to work:

1) Download and install the Microsoft Script Debugger
http://www.microsoft.com/downloads/d...DisplayLang=en

2) In IE, click Tools, Internet Options and select the Advanced tab and make
sure Disable Script Debugging (Internet Explorer) is NOT checked

3) In your client-side Javascript, insert the word debugger; where you want
your code to break. E.g.

<script>

function myFunction()
{
debugger; // code execution will break here
alert('Hello world');
}

4) Click F5 to start your app. When you navigate to the page in question,
you can debug your client-side Javascript just like you would debug your
server-side code i.e. with F10, F11 etc, interrogate locals, use the
Immediate window etc...

Jun 26 '06 #5
Hi,

Mark Rae wrote:
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...

Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?

Presumably, you mean debugging Javascript in IE...?

If so, the following is pretty much guaranteed to work:

1) Download and install the Microsoft Script Debugger
http://www.microsoft.com/downloads/d...DisplayLang=en


Since the OP has Visual Studio 2005, why use the Microsoft Script
debugger? Simply use Visual Studio's own script debugger, which is
better anyway.

In Studio 2005, with IE running, select the menu Debug / Attach to
process, select the correct instance of IE, and click Attach.

Alternative: Place a breakpoint in your JavaScript code and press F5 to
start in debug mode.
2) In IE, click Tools, Internet Options and select the Advanced tab and make
sure Disable Script Debugging (Internet Explorer) is NOT checked


That's true with VS2005 too.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 26 '06 #6
Mark,
I wrote a Javascript wrapper for my Vbscript problem and now I am back in
business.
I you would like to send me your address I'll send you a $5 tip for your
excellent help!
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
"Mark Rae" wrote:
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?


Presumably, you mean debugging Javascript in IE...?

If so, the following is pretty much guaranteed to work:

1) Download and install the Microsoft Script Debugger
http://www.microsoft.com/downloads/d...DisplayLang=en

2) In IE, click Tools, Internet Options and select the Advanced tab and make
sure Disable Script Debugging (Internet Explorer) is NOT checked

3) In your client-side Javascript, insert the word debugger; where you want
your code to break. E.g.

<script>

function myFunction()
{
debugger; // code execution will break here
alert('Hello world');
}

4) Click F5 to start your app. When you navigate to the page in question,
you can debug your client-side Javascript just like you would debug your
server-side code i.e. with F10, F11 etc, interrogate locals, use the
Immediate window etc...

Jun 26 '06 #7
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:01******** *************** ***********@mic rosoft.com...

Arne,
I you would like to send me your address I'll send you a $5 tip for your
excellent help!


I'm pleased to have been able to help you.

This is a peer-to-peer newsgroup where people help each other because they
want to - neither I nor anyone else requires nor expects payment for this.

However, if you feel so inclined, please donate the $5 to a charity of your
choice.

Or take the person you love most in the world (so long as that's not
yourself!) out to a decent bar and buy them a drink from me... :-)
Jun 26 '06 #8
Most of my problems are in VBScript and I was not able to get my breakpoints
to work in Visual Studio 2005. Mark's idea worked great even without
downloading the debugger.
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
"Laurent Bugnion" wrote:
Hi,

Mark Rae wrote:
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...

Sometimes I get an exception in the browser and I get prompted to start
Visual Studio 2005 for debugging.
Sometimes I would like to start client side debugging on demand. How can I
do that?

Presumably, you mean debugging Javascript in IE...?

If so, the following is pretty much guaranteed to work:

1) Download and install the Microsoft Script Debugger
http://www.microsoft.com/downloads/d...DisplayLang=en


Since the OP has Visual Studio 2005, why use the Microsoft Script
debugger? Simply use Visual Studio's own script debugger, which is
better anyway.

In Studio 2005, with IE running, select the menu Debug / Attach to
process, select the correct instance of IE, and click Attach.

Alternative: Place a breakpoint in your JavaScript code and press F5 to
start in debug mode.
2) In IE, click Tools, Internet Options and select the Advanced tab and make
sure Disable Script Debugging (Internet Explorer) is NOT checked


That's true with VS2005 too.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jun 26 '06 #9
That's right. A tip should never be required or expected. A tip should be
100% voluntary.
The tip was declined and redirected. I'll put my gratitude in the bit bucket
since my beloved doesn't visit bars.

--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)
"Mark Rae" wrote:
"Arne Garvander" <Ar***********@ discussions.mic rosoft.com> wrote in message
news:01******** *************** ***********@mic rosoft.com...

Arne,
I you would like to send me your address I'll send you a $5 tip for your
excellent help!


I'm pleased to have been able to help you.

This is a peer-to-peer newsgroup where people help each other because they
want to - neither I nor anyone else requires nor expects payment for this.

However, if you feel so inclined, please donate the $5 to a charity of your
choice.

Or take the person you love most in the world (so long as that's not
yourself!) out to a decent bar and buy them a drink from me... :-)

Jun 26 '06 #10

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

Similar topics

4
4080
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is dependant on data collected in the code behind on the server. I have set AutoPostback to false for the controls and added lines such as cboMyCombo1.Attributes.Add("onchange", "MyCombos_OnChange('1')"); in the Page_Load event, which is rendered OK...
5
1642
by: Alvin Bruney | last post by:
I have a server side datagrid control. I'd like to clear the grid before the post occurs using javascript. Anybody know how to do this? It would be a similar effect to binding to a null dataset in the codebehind, sorta. -- Regards, Alvin Bruney Got tidbits? Get it here... http://tinyurl.com/3he3b
2
5981
by: Helen | last post by:
I've got some clientside script that runs when the selected index of a select box changes. Now I need to swap my selectbox with an ASP.NET radiobuttonlist (to solve some layout issues). I still need the clientside script to run when the selected radio button changes, but I'm having trouble registering onclick events with each of the radio buttons. I've tried registering an onclick attribute with each item: item.Attributes +=...
3
1779
by: Tiësto | last post by:
Hi guys, I'm using a RadioButtonList with three options and I'm trying to get this script rendered properly <input id="rblBillState_0" type="radio" name="rblBillState" value="0" onclick="return rblBillState_onclick(0)"/> <input id="rblBillState_1" type="radio" name="rblBillState" value="1" onclick="return rblBillState_onclick(1)"/> <input id="rblBillState_2" type="radio" name="rblBillState" value="2" onclick="return...
2
2259
by: Luis Ferrao | last post by:
Hi, I have some code that looks like this: -- CODE ---------------------------- Public Class NodeEditor Inherits System.Web.UI.Page Protected WithEvents ChildList As System.Web.UI.WebControls.ListBox
1
1498
by: MattC | last post by:
I have a user control that contains several requiredFieldValidators. The page the control sits in has other RequiredFieldValidators. On submitting the form all the validators on the page fire and correctly validate. The validators in the control seem to validate but do not return true/IsValid as so my form is not submitted. I would like to do this ClientSide, the only resolution I can find is to perform the validation for the...
3
2631
by: RFS666 | last post by:
Hello together, I tried to find out about populating an asp.net server control (a dropdownlist) from the clientside jscript, but I didn't find a solution up to now. I cannot use a html dropdownlist, because a database query in codebehind has to be done, when a new listItem is selected. So, I need to use a servercontrol dropdownlist. Now to my problem:
16
1414
by: susiedba | last post by:
hey I used to be able to take VB6 code and paste it into a HTML page and it would run on the clientside does anyone know if this is possible in VB 2005? Thanks -Susie
2
10723
by: John Kotuby | last post by:
Hi all, In ASP.NET 2.0 and VB.NET, I am trying to get the OnSelectedIndexChanged event to fire a Javascript function. There is no OnClientClick event for that control. When I try something like: OnSelectedIndexChanged="javascript:SetOwner('<%= lstOwner.ClientID %>');" I get an error.
0
8365
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8883
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...
1
8563
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7390
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...
0
4200
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...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
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
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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.