Visual Studio Developer Center >
Visual Studio Forums
>
Visual Studio Debugger
>
Can not debug JavaScript - VS.NET 2008
Can not debug JavaScript - VS.NET 2008
- I have a web site project...along with many other supporting projects. My start-up project is the web site project.
I see the following message on a JavaScript breakpoint..."..The Breakpoint will not currently be hit. No symbols have been loaded for this document..."
I can not figure out why JavaScript suddenly can not be debugged. The propject is ASP.NET 3.5 with some Silverlight companion projects....and some other companion class libraries.
I have done everything being suggested on the Internet. 1). I have enabled debugging in IE/Advanced options...2) The build type is DEBUG. 3) I have tried attach to process....this does not change the results. 4) I have cleaned out the solution and conducted a full rebuild.
I have conducted JavaScript debugging on this same VS.NET 2008 instance in the past.....but for now I am unable to.....so I knopw how to typically enable JavaScript debugging.
HELP....
Any suggestions ????
Answers
- Is Silverlight debugging enabled? You cannot debug Silverlight and Script at the same time, so if Silverlight debugging is enabled for the project, then script debugging will not work.
Best Regards, Andrew Hall. Visual Studio Debugger.- Marked As Answer byHongye SunMSFT, ModeratorTuesday, November 10, 2009 3:11 PM
All Replies
- Hello PLippard,
Thanks for your post.
Can you add following code at the point that you want to put the breakpoint?
Check if Visual Studio breaks at debugger and if the "Debugger Breakpoint" message is popped up.debugger; alert('Debugger Breakpoint');
If either of them are true, please clear IE cache files.
In the Visual Studio, please make sure that VS is debugging IE process by Script Debugger. You can check it in Debug | Windows | Processes | Check if IE process with Debugging colume as Script.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. - I added the alert message as suggested by you....and the alert message does pop-up....along with the VS JIT Debugger dialog....asking if I want to select the possible debuggers....either select from above list or manually set. The only possible debugger listed is another instance of VS.NET 2008.
Either selection I make here does not solve the problem. It attempts to start another VS.NET 2008 instance which of course does absolutely nothing.
I had previously tried clearing the IE cache many times before.....and I have tried once again....and this does not change the outcome of the problem.
I examine Debug/Windows/Processes I see an entry for iExplore.exe for Silverlight debugging and I also see an entry for w3wp.exe for managed code debugging.....but I see nothing for Script debugging.....and I see no options to enable it. If I go to VS.NET 2008 Tools/Options/Debugging/Just-In-Time all three are checked; Managed, Native and Script.
Your help is much appreciated....I hope the above response helps.
Can you offer another suggestion ?
HELP... - Is Silverlight debugging enabled? You cannot debug Silverlight and Script at the same time, so if Silverlight debugging is enabled for the project, then script debugging will not work.
Best Regards, Andrew Hall. Visual Studio Debugger.- Marked As Answer byHongye SunMSFT, ModeratorTuesday, November 10, 2009 3:11 PM
That did it.....I am amazed.....I disabled Silverlight debugging in the Web Site Start Options.
I appreciate the help....but I must ask this question.....How is anyone supposed to know this fine detail ?....short of posting a question ?


