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!


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 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.

meldaresearchusa said...

Our custom writing company provides custom papers that will earn you the highest of grades because students can easily become frustrated trying to meet deadlines. Seek our affordable writing services today.

meldaresearch said...

The quality of our Best Essay Writing Service are always high as we work hard to ensure that we uphold our good reputations at all time. We make sure that Nursing Essay Writing Services ordered are delivered on time and our prices are affordable to every student.

Devi.Angularjs said...

IEEE Project Domain management in software engineering is distinct from traditional project deveopment in that software projects have a unique lifecycle process that requires multiple rounds of testing, updating, and faculty feedback. A IEEE Domain project Final Year Projects for CSE system development life cycle is essentially a phased project model that defines the organizational constraints of a large-scale systems project. The methods used in a IEEE DOmain Project systems development life cycle strategy Project Centers in Chennai For CSE provide clearly defined phases of work to plan, design, test, deploy, and maintain information systems.

This is enough for me. I want to write software that anyone can use, and virtually everyone who has an internet connected device with a screen can use apps written in JavaScript. JavaScript Training in Chennai JavaScript was used for little more than mouse hover animations and little calculations to make static websites feel more interactive. Let’s assume 90% of all websites using JavaScript use it in a trivial way. That still leaves 150 million substantial JavaScript Training in Chennai JavaScript applications.

Puremelda said...

In case you have an urgent order, make your Custom Essay Papers request and let the experts get down to business immediately. The agency provides Prewritten Essays and other Cheap Dissertation Writing Services that you may require.

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 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.

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