Debug javascript in Visual Studio 2010

Hello Experts,
I am trying to debug Java Script codes in Visual Studo 2010.  I have already tried enabling Disable script debugging (Internet Explorer), Disable script debugging (Other).  Any idea what is going on?  I am able to debug the c# code, just fine.  Please let me know

Thank you in advance!
RadhaKrishnaKiJayaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
you need to bring up the developer tools in your browser and debug from there.
Easwaran ParamasivamCommented:
I hope you have put debugger; command in client side? Try launching the VS2010 in 'Run as administrator' mode and try again. Also make sure that you run the project in Debug mode.
RadhaKrishnaKiJayaAuthor Commented:
David and Easwaran,
Thank you.  Currently I am trying to debug in Debug mode (not Release).  I tried to run as VS2010 as an administrator, still no good.

David, how would I bring up the developer tools?

Thank you!
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

RobOwner (Aidellio)Commented:
Ctrl+Shift+i or F12 will usually show the dev tools when viewing your site in a browser.
RadhaKrishnaKiJayaAuthor Commented:
Hi Rob Jurd,
I tried F12 as well as Ctrl + Shift + I.  Still I don't see the Dev Tools.  Any other suggestion?

Thank you!
RobOwner (Aidellio)Commented:
What browser are you using?
RadhaKrishnaKiJayaAuthor Commented:
Internet Explorer
RobOwner (Aidellio)Commented:
David Johnson, CD, MVPOwnerCommented:
I have already tried enabling Disable script debugging (Internet Explorer), Disable script debugging (Other).
you want to see the script errors so you need to uncheck disable script debugging (both areas) When you hit a script error you will be given the chance to open in debugger.  select new instance of VS20XX
RadhaKrishnaKiJayaAuthor Commented:
Guys, Thank you for your help.  Please give me few to try your suggestions and update you.  Thank you again!
RadhaKrishnaKiJayaAuthor Commented:
Here the screen shots of the example I have.  Still it is not able to debug.
JSDebug.png
David Johnson, CD, MVPOwnerCommented:
c = a + b
variable b is undefined

Define variable B and initialize it
RobOwner (Aidellio)Commented:
What happens if you check that box "use the built-in debugger of internet explorer"
RadhaKrishnaKiJayaAuthor Commented:
I tried to use Developer Tool.  The error appears first.  By the time I activate the tool, nothing is left.  I just see my html codes.
RobOwner (Aidellio)Commented:
Do you have a link to your page?

Have you tried debugging in another browser such as firefox or chrome?
RadhaKrishnaKiJayaAuthor Commented:
Hi Rob,
I am still using localhost.  Yes, I tried with Google Chrome.  It shows me a blank page.

Thank you!
RobOwner (Aidellio)Commented:
Use Google chrome. Open up the dev tools. Reload your page. You'll be able to debug your code.
https://developer.chrome.com/devtools
RadhaKrishnaKiJayaAuthor Commented:
Thank you all.  I upgraded my IE to IE11.  Now works fine.  Thank you again.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RadhaKrishnaKiJayaAuthor Commented:
Already described above.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.