How to debug javascript in Visual Studio 2010?

All I know is people are used to debug the JavaScript code with alerts… And this technique is still unknown for most of the users.

Its been a while since IE, Opera have their inbuilt debugger and firebug for Firefox. But when you DO NOT want to use inbuilt debuggers and want to debug with Visual Studio 20xx?

Just use debugger keyword in your JavaScript code before the statement you want to start the debugging. For example:

function foo(params){

By adding the debugger keyword, you are telling the browser to get all available debuggers.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s