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

Re: Cannot debug Javascript with VS2008 SP1

Hello Mark Rae [MVP],
I'm afraid I don't think I can be much more help other than to point
you here: http://msdn.microsoft.com/en-us/library/k2h50zzs.aspx - I've
got so used to using the debugger; method over the years that I never
use anything else...
Oh well thanks anyway :)
AAMOI, are you using ComponentArt Web UI components...?
Nope... Some DevExpress and some Infragistics (older 2005 stuff) but no ComponentArt

--
Rory
Aug 19 '08 #1
7 2185
Hello Rory,
Hello Mark Rae [MVP],
>I'm afraid I don't think I can be much more help other than to point
you here: http://msdn.microsoft.com/en-us/library/k2h50zzs.aspx -
I've got so used to using the debugger; method over the years that I
never use anything else...
Oh well thanks anyway :)
For anyone following this..... a complete reinstall of the main VS2008 pro
(plus reinstalling SP1) did not help.
Aug 19 '08 #2
For anyone crazy enough to still be following this I have a (partial) solution.

I have previously had Firefox set as my default browser.

I knew that this would cause my site to launch in firefox and therfore I
have been using the "start external program" facility.
With Firefox set to my default browser this fails to enable debugging even
with a subsequent "attach to" applied to the correct instance of IE
-------------------------------------------------------------
Start external program : C:\Program Files\Internet Explorer\iexplore.exe
Command line arguments: http://localhost/WebApplication2/default.aspx
-------------------------------------------------------------

Setting IE to the default browser causes it all to work....
But I want to use Firefox so this is only a partial solution..

The question remains....What does VS do differently in these 2 cases that
I might be able to simulate using the "Start external program" feature?

--
Rory
Aug 20 '08 #3
"Rory Becker" <ro********@newsgroup.nospamwrote in message
news:3a**************************@news.microsoft.c om...
I have previously had Firefox set as my default browser.

With Firefox set to my default browser this fails to enable debugging even
with a subsequent "attach to" applied to the correct instance of IE
As I mentioned, client-side debugging in FireFox requires an add-in to be
installed - have you done that...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 20 '08 #4
Hello Mark Rae [MVP],
>I have previously had Firefox set as my default browser.

With Firefox set to my default browser this fails to enable debugging
even with a subsequent "attach to" applied to the correct instance of
IE
As I mentioned, client-side debugging in FireFox requires an add-in to
be installed - have you done that...?
I have tried Firebug but have not found it to be that great.

In any case I am happy trying for the moment to debug client-side using IE.

I would like VS to launch my site using IE despite the allocation of Firefox
as my default browser (hence the settings I detailed in my previous post)

However when it does this, and I subsequently attach to the copy of IE genereated,
something is different compared to if I had allocated IE as my default browser.

--
Rory
Aug 20 '08 #5

I have been playing around and have now determined that

Even when IE is set as the default browser... if you change your launch settings
to ....
-------------------------------------------------------------
Start external program : C:\Program Files\Internet Explorer\iexplore.exe
Command line arguments: http://localhost/WebApplication2/default.aspx
-------------------------------------------------------------
.... your js debugging will vanish without a trace. (Unless you use "debugger;")

--
Rory

Aug 20 '08 #6
Hi Rory,

You don't have to use start external program or set IE as default. You can
do this:
1. Right click the ASPX file.
2. Click "Browse with".
3. Select "Internet Explorer" and click "Set as Default".
4. Click Cancel
5. Press F5 to launch your web page in IE.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 20 '08 #7
Hello Hongye Sun [MSFT],
You don't have to use start external program or set IE as default. You
can
do this:
1. Right click the ASPX file.
2. Click "Browse with".
3. Select "Internet Explorer" and click "Set as Default".
4. Click Cancel
5. Press F5 to launch your web page in IE.

Hongye Sun ..... you are wonderful... fantastic...

Works perfectly

I have firefox working as my default browser and I have VS launching IE as
you describe.

Perfect.... Today is going to be a good day.

Thanks very much :)

--
Rory
Aug 20 '08 #8

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

Similar topics

20
by: Iouri | last post by:
Hi everybody, We are currently using VS2003 and now we are in the porcess of upgrading to the next Visual Studio version. Does somebody have a real life experience with VS2008? My boss wants to...
2
by: CGatto | last post by:
Hi, We have just started getting the following error during compiles of our forms-based application. We are developing in VS2008, VB.Net, with Team Foundation Server-based source control. ...
19
by: Michael Tissington | last post by:
Recently upgraded to VS 2008 and trying to debug a web application. When I start the application the url is something like http://localhost:nnn/project_name/default.aspx This is new and...
0
by: =?Utf-8?B?SmVmLnB0Yw==?= | last post by:
Hi, I am currently facing exactly the same issue with Visual Studio 2005. Did you find a way to solve this problem ? "AntonioSACE" wrote:
4
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
1
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi I've just swapped a project over from VS2005 / .net 2.0 to VS2008 / .net 3.5, but I can no longer debug in Visual Studio. My project is setup to use IIS7 (I'm running on Vista), rather than...
1
by: Rory Becker | last post by:
Just when I need it, my copy of VS2008 seems incapable of debugging javascript code. I'm really not sure it ever was. Perhaps I saw this before in VS2005 (which I recently uninstalled) could...
1
by: Greg Setnes | last post by:
I am using JavaScript with my C# web application, so I'm not sure I should be posting a JavaScript question here, but here it goes anyways. Currently, I can step through my C# code in the Code...
1
jhardman
by: jhardman | last post by:
I'm working with my first real xbap project, and I have run into a real wall. Although my project runs just fine when debugging and I get no error while building, immediately as the publish finishes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: 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.