Friday 17 January 2014

Painfully Slow Debugging in Visual Studio 2013 and Internet Explorer

I’ve been researching an issue today with debugging on VS2013 and IE. It’s a really weird one as the symptoms don’t make a great deal of sense, however I have found a cause and a temporary cure.

I have a simple website that I am debugging. If I startup the application and put a breakpoint within some code that gets called before any web requests are made all is fine.

I then click something on a page which drops me into the debugger. I was debugging some code as shown below…

Code Snippet
public ActionResult Login(string id)
{
    var ctx = Request.GetOwinContext();

    var props = new AuthenticationProperties
    {
        RedirectUri = Url.Action("Callback")
    };

    ctx.Authentication.Challenge(props, id);

    return new HttpUnauthorizedResult();
}

My breakpoint was on the first line, I was then stepping through the code and here’s the problem.

Stepping through took *ages*. The first click of F10 took about 9 seconds. Subsequent keypresses were 5 seconds or so. I had to figure this out.

As usual I turned to the internet and found a bunch of useless stuff, and then I found this which led me to this and so I download xPerf, ran some tests and came up with a graph that showed me it was Internet Explorer that was waiting which was strange – as I was inside Visual Studio, admittedly debugging something in IE. I then tried debugging with Chrome & Firefox, both were OK.

Whilst I debug I mostly use the keyboard, however during one of my sessions I used the mouse and clicked on the step commands on the toolbar, and strangely enough these worked as usual, it was single stepping with the keyboard that was causing the problem.

Unlike Bruce (the two links above) I couldn’t get any further with analysing the data (the graphs he drilled down to don’t seem to be available in the version I just downloaded), so I went back to the Net and asked again and this article popped up. LastPass – yep, I’m using it and yep, disabling it did the trick.

Now don’t get me wrong – I love LastPass and I wouldn’t be without it, but for the moment it’s off limits to Internet Explorer on my machine.

Hope this helps someone else!

14 comments:

Unknown said...

I had the same Problem. Thanks! Fuck Lastpass and IE :(

Unknown said...

Thank you SO much for posting! This issue has been driving me crazy!!

Unknown said...

Oh yeah, debugging really took a lot of time which, I admit, I was planning to spend more profitably,
but besides that boring process, I had to find a suitable source for download dll files https://fix4dll.com/ to continue the application.
In general, if I have to do it again, I'm afraid I'll just go mad)))

Richard Majece said...

You can get useful advices from the Internet all the time. For example, here I found advices for my essay.

AngelaHolt said...

very good and interesting, I appreciate your work. https://androdumpper.org/apk/ https://whatsdog.org/apk/ https://testdpc.info/apk/

Assignment Help said...

Great Blog with useful information. student Faces many problems while doing Assignment.
Cost Accounting Assignment Help

Sam said...

Our online assignment writers aim to become a helping hand of the students who need a proficient assignment writing help to balance out their academics with work.

Kiyara Smith said...

CrazyForStudy provides assignment service at affordable cost in a wide range of subject areas for all grade levels, we are already trusted by thousands of students who struggle to write their academic papers and also by those students who simply Hospitality Management Assignment Help Services to save their time and make life easy.

davidmocond said...

I agree with the author of the article, broadly speaking, but something happens a little differently in life. I have found another definition which you can find on the buyessay.org review in the article. Anyway, thanks for the message. It was very good to read,

Live Web Tutors said...


Online Assignment help canada
Online Essay help canada
Online Dissertation help
Homework help Canada
Online Coursework help
Thesis help canada

Unknown said...

Merci d'avoir écrit un si bon article, je suis tombé sur votre blog et j'ai lu quelques articles. J'aime votre style d'écriture très unique et intéressant.


https://www.safetotosite.pro

joellreyy87 said...

The exploration project enormously affects the ultimate result of your certificate, thus we are here to Pay Someone To Do My Research Paper help. The accomplished composing group give top-notch paper composing administrations and scholastic composing help with planning the two pieces of theses or full undertakings. We can likewise help you with information assortment, measurable examination, exposition improvement, paper writing audits and web-based mentoring.

Angel17 said...

I find this post so informative. Keep us updated! dumpster rental Avon

The Pie Matrix said...

In the vast market of binoculars in India, there are some exceptional options that cater to the diverse needs of consumers. These high-quality binoculars are designed to deliver outstanding optical performance, ensuring sharp and detailed images even in challenging lighting conditions. With a wide range of magnification options, lens coatings, and ergonomic designs, these binoculars offer comfort and convenience during prolonged use.

Whether you are a nature enthusiast, an avid traveler, or a sports lover, these Best binoculars in india are sure to enhance your viewing experience and provide you with unforgettable moments of clarity and precision.