Contents tagged with debugging

  • Slow Razor Views in MVC? Make Sure You're Not In Debug Mode

    A short and sweet tip for today - I was investigating a page which I thought had some performance issues. My initial assumption was the backend controller, but a combination of SQL Profiler and Glimpse (which is super great and easy to use) showed me that the real bottleneck was ViewResult.ExecuteResult(). While someone on the internet suggested it might be a bunch of Url.Actions() causing … more

  • How To Stop Visual Studio From Debugging Javascript Errors For A Website Project

    Have you found that Visual Studio doesn't listen to you when you tell it not to debug your Javascript? You've started an instance of it via the Debug menu, but you don't want to pause every time a script error happens - however, the Internet Explorer Advanced Options / "Disable script debugging" option does nothing, and neither does Just-In-Time / unchecking "Script" from Types of Code from … more

  • Debugging the Angular JS Routing Lifecycle

    On the first day at my new job at Tailster, I threw myself at diagnosing an Angular JS bug, despite my general lack of knowledge and experience in Angular. Long story short, if you ever need to trace what route and what controllers are being called, you can add the following code to your your rootscope function: $rootScope.$on('$stateChangeStart',function(event, toState, toParams, fromState, … more

  • 1