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

debugging javascript code

Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)
Nov 19 '05 #1
14 1677
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)

Nov 19 '05 #2
Where in code ?
Where in IE ?

I would like a sample, please.

Thanks :)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)


Nov 19 '05 #3
Suppose you have your JS something like the following:

function MyFunc1(){
// do something.

debugger; // This will cause IE to launch the VS.NET when
//encountered and script debugging is turned
on.
//The script page will be loaded into the
IDE.

MyFunc2();

// dosomething.
}

function MyFunc2(){
// do something.
}

"John M" <nobody@nospam_please.com> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Where in code ?
Where in IE ?

I would like a sample, please.

Thanks :)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch and let you step through your code. In IE, you will have to enable script debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)



Nov 19 '05 #4
Yo also have to change IE's settings to allow client-side debugging. This is
turned off by default. Default of whom, you ask? Default of Microsoft! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)


Nov 19 '05 #5
In IE 6.0 - Where is that option ?

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yo also have to change IE's settings to allow client-side debugging. This
is turned off by default. Default of whom, you ask? Default of Microsoft!
;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will
launch
and let you step through your code. In IE, you will have to enable
script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)



Nov 19 '05 #6
Tools|Internet Options|Advanced Tab.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"John M" <nobody@nospam_please.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
In IE 6.0 - Where is that option ?

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yo also have to change IE's settings to allow client-side debugging. This
is turned off by default. Default of whom, you ask? Default of Microsoft!
;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will
launch
and let you step through your code. In IE, you will have to enable
script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)



Nov 19 '05 #7
Solved, thanks :)
(and uncheck the disable script debugging for internet explorer & other).

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP14.phx.gbl...
Tools|Internet Options|Advanced Tab.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"John M" <nobody@nospam_please.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
In IE 6.0 - Where is that option ?

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yo also have to change IE's settings to allow client-side debugging.
This is turned off by default. Default of whom, you ask? Default of
Microsoft! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will
launch
and let you step through your code. In IE, you will have to enable
script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
> Hello,
>
> In Microsoft Visual Studio .NET 2003,
>
> How can I debug javascript/vbscript codes (client side) ?
>
> Thanks :)
>
>



Nov 19 '05 #8
"Tools", "Internet Options", "Advanced"
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"John M" <nobody@nospam_please.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
In IE 6.0 - Where is that option ?

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yo also have to change IE's settings to allow client-side debugging. This is turned off
by default. Default of whom, you ask? Default of Microsoft! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch
and let you step through your code. In IE, you will have to enable script
debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

In Microsoft Visual Studio .NET 2003,

How can I debug javascript/vbscript codes (client side) ?

Thanks :)



Nov 19 '05 #9
In message <O2**************@TK2MSFTNGP14.phx.gbl>, Kevin Spencer
<ke***@DIESPAMMERSDIEtakempis.com> writes
Tools|Internet Options|Advanced Tab.


Personally, the best tool for debugging client side JavaScript is to use
the Mozilla web browser as you get a full debugger and script console
built in.

Kind Regards,

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 19 '05 #10
> (and uncheck the disable script debugging for internet explorer & other).

I presumed you would guess that part! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"John M" <nobody@nospam_please.com> wrote in message
news:uC**************@TK2MSFTNGP10.phx.gbl...
Solved, thanks :)
(and uncheck the disable script debugging for internet explorer & other).

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP14.phx.gbl...
Tools|Internet Options|Advanced Tab.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"John M" <nobody@nospam_please.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
In IE 6.0 - Where is that option ?

Thanks :)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yo also have to change IE's settings to allow client-side debugging.
This is turned off by default. Default of whom, you ask? Default of
Microsoft! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
>I usually place the "debugging;" (or "debugger;", I can't remember)
> statement in my code. When this statement is executed, VS.NET will
> launch
> and let you step through your code. In IE, you will have to enable
> script
> debugging from IE's options.
>
> "John M" <nobody@nospam_please.com> wrote in message
> news:ef**************@tk2msftngp13.phx.gbl...
>> Hello,
>>
>> In Microsoft Visual Studio .NET 2003,
>>
>> How can I debug javascript/vbscript codes (client side) ?
>>
>> Thanks :)
>>
>>
>
>



Nov 19 '05 #11
> Personally, the best tool for debugging client side JavaScript is to use
the Mozilla web browser
Better than Visual Studio.Net? Hmmmmmmmmmmm.....................no.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Andrew D. Newbould" <ne********@NOzadSPANsoft.com> wrote in message
news:xg**************@zadsoft.gotadsl.co.uk... In message <O2**************@TK2MSFTNGP14.phx.gbl>, Kevin Spencer
<ke***@DIESPAMMERSDIEtakempis.com> writes
Tools|Internet Options|Advanced Tab.


Personally, the best tool for debugging client side JavaScript is to use
the Mozilla web browser as you get a full debugger and script console
built in.

Kind Regards,

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com

Nov 19 '05 #12
In message <OQ**************@TK2MSFTNGP12.phx.gbl>, Kevin Spencer
<ke***@DIESPAMMERSDIEtakempis.com> writes
Personally, the best tool for debugging client side JavaScript is to use
the Mozilla web browser


Better than Visual Studio.Net? Hmmmmmmmmmmm.....................no.


Sorry Kevin ...

I thought I was in a VB Classic newsgroup when I responded not the .Net
ones. Still, Mozilla is still better than IE for some things.

Kind Regards,
--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 19 '05 #13
> Still, Mozilla is still better than IE for some things.

Sure. For debugging the Mozilla DOM-specific JavaScript interaction. But the
same could be said for any debugger, since none that I know of debug for
more than one browser. So, all other things being equal, it could not be
(overall) better than VS.Net, which does everything that every other
debugger does and then some.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Andrew D. Newbould" <ne********@NOzadSPANsoft.com> wrote in message
news:ck**************@zadsoft.gotadsl.co.uk...
In message <OQ**************@TK2MSFTNGP12.phx.gbl>, Kevin Spencer
<ke***@DIESPAMMERSDIEtakempis.com> writes
Personally, the best tool for debugging client side JavaScript is to use
the Mozilla web browser


Better than Visual Studio.Net? Hmmmmmmmmmmm.....................no.


Sorry Kevin ...

I thought I was in a VB Classic newsgroup when I responded not the .Net
ones. Still, Mozilla is still better than IE for some things.

Kind Regards,
--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com

Nov 19 '05 #14
Just a small note on the side for this topic.

If you're using Master/Content pages in Beta 2, the debugger doesn't display
properly. Microsoft is aware of this and will be resolved in the next
release.

Please see
http://lab.msdn.microsoft.com/produc...3-a938b45efe51 for more details.

"Peter Rilling" wrote:
Suppose you have your JS something like the following:

function MyFunc1(){
// do something.

debugger; // This will cause IE to launch the VS.NET when
//encountered and script debugging is turned
on.
//The script page will be loaded into the
IDE.

MyFunc2();

// dosomething.
}

function MyFunc2(){
// do something.
}

"John M" <nobody@nospam_please.com> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...
Where in code ?
Where in IE ?

I would like a sample, please.

Thanks :)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
I usually place the "debugging;" (or "debugger;", I can't remember)
statement in my code. When this statement is executed, VS.NET will launch and let you step through your code. In IE, you will have to enable script debugging from IE's options.

"John M" <nobody@nospam_please.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
> Hello,
>
> In Microsoft Visual Studio .NET 2003,
>
> How can I debug javascript/vbscript codes (client side) ?
>
> Thanks :)
>
>



Nov 19 '05 #15

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

Similar topics

16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
4
by: Matt | last post by:
For debugging javascript purposes, should we ensure the following check boxes (1-3) are checked. In IE browser, tools->Internet Options->Advanced Under Browsing, 1) disable script debugging...
25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
5
by: Shaul Feldman | last post by:
Hello, I'm almost sure it's possible, just how?! The breakpoints I put in JS code (client side) are not doing anything when I run ASP.Net application (F5). How this can be done? -- With the...
3
by: Angel | last post by:
Is there any way to debug a javascript file that I included in my ASP.net project. or some reason when I call a javascript function in the file from my ASP.NET code I get an error message. now if i...
5
by: Bill | last post by:
1. I find that debugging does not work if the JavaScript you wish to debug is included in your program via src="blah". All of my programs use this because I have many common scripts that are used...
13
by: Arne Garvander | last post by:
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? --...
6
by: Morgan Packard | last post by:
Hello, Wondering what everyone's experience with breakpoint debugging is here. I've been using firebug for a few years and, while I'm delighted to have _some_ debugging ability, I've found it to...
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
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,...
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...

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.