views:

291

answers:

2

I'm having a really annoying problem with debugging javascript with VS2008.

If I simply press F5 (or choose 'start Debugging' from the Debug menu), the iexplore process is attached, but no breakpoints break in the scripts. The Script Documents tree doesn't even appear in the solution explorer.

I already know:

  1. I can set a breakpoint in Javascript just fine. It does NOT show the "This point will not be hit" message.
  2. Calling the debugger through using the 'debugger' keyword works fine, but attaching to the iexplore process doesn't since it gives a "process already attached to a debugger" message.
  3. Using the manual 'Attach to process...' works just fine. The Script Documents appears as well.
  4. The project has recently been converted to a Web Application from a WebSite.

I already tried:

  1. Clearing the IE cache.
  2. Shutting down VS2008, Stopping the IIS and deleting the temporary asp.NET files restarting both IIS and VS2008 afterwards.
  3. Setting IE7 as the default browser both for windows and for VS2008.
  4. Resetting my user settings for VS2008.
  5. Checking that IE script debugging is enabled.

Nothing has worked so far. While Attaching to process isn't too taxing, it is very annoying when I'm used to just hitting F5.

If anyone can think of a solution, please please please (I'm begging here!) let me know!

+2  A: 

Is silverlight debugging enabled on the website project properties? This will disable Javascript debugging.

bendewey
damn! That was it! That is very good to know! Thanks a million!
SirDemon
I spent a good 4 hours one day trying to figure that out.
bendewey
Well, at least I can take comfort in only spending 3.5 hours on it until I asked the question here. Thanks again!
SirDemon
+1  A: 

Very good, i had the same problem. I disable silverlight debugging and it work!!

ChepA