0

I want to debug javascript in my .cshtml file and adding "debugger;" is troublesome.

Is there a better way of debugging javascript in .cshtml files being debugged under VS2010?

1
  • if your script runs in a browser you can use window.console Commented May 11, 2012 at 17:43

1 Answer 1

6

The best way for me has always been to just open the site in a browser and use the browser's development tools. All of them allow setting breakpoints, watch variables etc. these days.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.