473,668 Members | 2,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2198
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\iexplo re.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********@new sgroup.nospamwr ote in message
news:3a******** *************** ***@news.micros oft.com...
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\iexplo re.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****@microsof t.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
2881
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 go with VS2005 and I am trying to convince to buy VS2008. Can somebody provide links to compare 2 products in terms of how stable they are. I do not need VS2008 new features, I need to prove to my management that VS2008 is a stable product. TIA
2
5999
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. Full error message is: "Unable to copy file "obj\Debug\OurProjectName.xml" to "bin\Debug\OurProjectName.xml". Access to the path 'obj\Debug\OurProjectName.xml' is denied."
19
1871
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 causes my web to fail because of the project_name embedded in the url. How do I get the url to be like
0
1737
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
4426
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
1342
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 the Internal Web Server. However, when I hit F5, I get a HUGE dialog box telling me "unable to start debugging on the web server". If I hit CTRL-F5, I can see that I actually get
1
1306
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 this have been it? I never get a "Script Documents" node in Solution explorer. Breakpoints are never hit.
1
1711
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 Behind files, but can I step through the Javascript code as well? If not, how could I achieve such a thing, if at all possible?
1
3740
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 and it opens in my browser it gives an error message that "Cannot locate resource page1.xaml". I have seen a few other posts that were similar, but I couldn't find a solution that helped. Here are some sample suggestions I found while searching...
0
8462
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
8382
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
8802
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8586
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
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
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
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1787
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.