Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Debugging in Visual Studio 2008 with IE7

Reply
Thread Tools

Debugging in Visual Studio 2008 with IE7

 
 
RuthG
Guest
Posts: n/a
 
      06-24-2009
I'm trying to use the Javascript debugger, but it doesn't seem to
work. I'm using Visual Studio 2008, asp.net, and Internet Explorer 7.
(I usually use Firefox and I can set breakpoints with firebug, but I'm
trying to get the integrated Visual Studio debugger, which I prefer,
to work with my Javascript.) In Visual Studio, under tools - options -
debugging - just-in-time all the boxes are checked to enable
debugging. In IE7, disable Javascript debugging is unchecked (both
boxes). I set a breakpoint in my .aspx source file where I know I will
go (on the first line of my function). I then click the green arrow to
start debugging. It doesn't work. My Javascript code runs but my
breakpoint is ignored. Breakpoints set in my code-behind file work
fine.

According to all the documentation, the debugger should work with my
Javascript. Is there a problem with IE7? Is firebug interfering with
the Visual Studio debugger, even though it's a firefox add-in?
 
Reply With Quote
 
 
 
 
David Mark
Guest
Posts: n/a
 
      06-24-2009
On Jun 24, 6:39*pm, RuthG <ruthgoldb...@tmspublishing.com> wrote:
> I'm trying to use the Javascript debugger, but it doesn't seem to
> work. I'm using Visual Studio 2008, asp.net, and Internet Explorer 7.
> (I usually use Firefox and I can set breakpoints with firebug, but I'm
> trying to get the integrated Visual Studio debugger, which I prefer,
> to work with my Javascript.) In Visual Studio, under tools - options -
> debugging - just-in-time all the boxes are checked to enable
> debugging. In IE7, disable Javascript debugging is unchecked (both
> boxes).


Those two checkboxes are completely counter-intuitive. IIRC, one must
be checked and the other unchecked. Disregard the documentation as MS
is rarely right about anything (even their own products) and try the
two possibilities.
 
Reply With Quote
 
 
 
 
RuthG
Guest
Posts: n/a
 
      06-25-2009
On Jun 24, 7:23*pm, David Mark <dmark.cins...@gmail.com> wrote:
> On Jun 24, 6:39*pm, RuthG <ruthgoldb...@tmspublishing.com> wrote:
>
> > I'm trying to use the Javascript debugger, but it doesn't seem to
> > work. I'm using Visual Studio 2008, asp.net, and Internet Explorer 7.
> > (I usually use Firefox and I can set breakpoints with firebug, but I'm
> > trying to get the integrated Visual Studio debugger, which I prefer,
> > to work with my Javascript.) In Visual Studio, under tools - options -
> > debugging - just-in-time all the boxes are checked to enable
> > debugging. In IE7, disable Javascript debugging is unchecked (both
> > boxes).

>
> Those two checkboxes are completely counter-intuitive. *IIRC, one must
> be checked and the other unchecked. *Disregard the documentation as MS
> is rarely right about anything (even their own products) and try the
> two possibilities.


Well, I tried unchecking them one at a time, but it had no effect.
Strangely, even though I had checked the "Disable Javascript debugging
- other" first, when I debugged it was unchecked. I tried checking it
again and applying my changes, but I still couldn't debug.
 
Reply With Quote
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      06-25-2009
RuthG wrote:
> [Problems with Visual Studio]
> Well, I tried unchecking them one at a time, but it had no effect.
> Strangely, even though I had checked the "Disable Javascript debugging
> - other" first, when I debugged it was unchecked. I tried checking it
> again and applying my changes, but I still couldn't debug.


microsoft.ALL exists.


PointedEars
 
Reply With Quote
 
RuthG
Guest
Posts: n/a
 
      06-25-2009
On Jun 25, 11:13*am, wmc <...> wrote:
> RuthG wrote:
> > I'm trying to use the Javascript debugger, but it doesn't seem to
> > work. I'm using Visual Studio 2008, asp.net, and Internet Explorer 7.
> > (I usually use Firefox and I can set breakpoints with firebug, but I'm
> > trying to get the integrated Visual Studio debugger, which I prefer,
> > to work with my Javascript.) In Visual Studio, under tools - options -
> > debugging - just-in-time all the boxes are checked to enable
> > debugging. In IE7, disable Javascript debugging is unchecked (both
> > boxes). I set a breakpoint in my .aspx source file where I know I will
> > go (on the first line of my function). I then click the green arrow to
> > start debugging. It doesn't work. My Javascript code runs but my
> > breakpoint is ignored. Breakpoints set in my code-behind file work
> > fine.

>
> > According to all the documentation, the debugger should work with my
> > Javascript. Is there a problem with IE7? Is firebug interfering with
> > the Visual Studio debugger, even though it's a firefox add-in?

>
> I just tried it and it worked with IE7 and VS2008 on a system that also
> has the latest Firebug in the latest Firefox (default browser). My
> settings are Internet options > Advanced > Disable Script Debugging
> (both IE and other) unchecked.
>
> Then I opened a test page and chose View > Script Debugger > Break at
> next statement and it took me right into VS (after a dialog box where I
> had choose between the different visual studios that are installed).


OK. I tried the same thing and I can get the debugger to work that
way, but I would have to go through that every time. It should also
work if I debug the page, using F5 instead of Ctrl-F5, but it doesn't.
If I then try View > Script Debugger > Open (Break always gives me
"There is no source code available for the current location"), I get
an error from Visual Studio "The source code cannot be displayed."
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VWD 2008 express and Visual Studio 2008 Chen ASP .Net 4 10-11-2009 01:18 AM
Visual studio 2008 remote debugger SP1 on Windows Server 2008 Julien ASP .Net 1 05-18-2009 05:38 PM
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM
Visual Studio 2008 Debugging Options katmagic ASP .Net 1 11-28-2008 03:48 PM
Visual Web Express 2008 X Visual Studio Pro 2008 HRsoft Informática ASP .Net 3 06-09-2008 02:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57