Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

asp.net mvc - Visual Studio debugging painfully slow when loading symbols

I have an issue which is practically similar to Visual Studio debugging/loading very slow but I haven't managed to find a solution to such a problem.

I have tried all what is described within that question and still, the symbol loading for the very first time is drastically slow.

Similarly to the other question, when starting an MVC project, I get several lines within the Output panel which consist of something similar to:

'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files
oot2ba097fab73cbf7App_Web__headerusermenu.cshtml.ee708ea.myhgafpb.dll', Symbols loaded.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files
oot2ba097fab73cbf7App_Web__layoutcmsbase.cshtml.ce72eb6d.ovoanhe-.dll', Symbols loaded.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files
oot2ba097fab73cbf7App_Web__notificationmessage.cshtml.5346933.9aei7ems.dll', Symbols loaded.

Such entries take around 300 - 500 ms each and these are executed for all the Partial Views we have within the project, which are quite considerable.

I have tried the solution within the other question but still didn't get any fast response times.

These are some tests we have made:

Using IIS Express

  • Loading website initially takes roughly 2 minutes
  • Stopping website and starting again takes around 1 min 45 sec
  • Once the website is running, I press on Load All Symbols (Tools > Otions > Debugging > Symbols > Load all symbols) and then stop project and run again, and it takes much less, round 25 sec. Still, the Load All Symbols button is disabled while the project isn't running, so for the very first time, I would need to wait until the project has loaded in order to press Load All Symbols

Using Visual Studio Development Server

  • Starting initially, takes roughly 50 sec
  • Stopped project and started again, takes roughly 20 sec
  • Clicking on Load All Symbols, stopping project and starting again takes roughly 15 sec

This is getting extremely frustrating as it is taking an extremely long amount of time in order to load project for the first time.

Any possible solution other than those mentioned within the question Visual Studio debugging/loading very slow which might help?

question from:https://stackoverflow.com/questions/17660368/visual-studio-debugging-painfully-slow-when-loading-symbols

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In my case, I had a file open in VS that was not part of my current solution (it happened to be an XML file which I had marked with breakpoints for quick-reference). When I removed those particular breakpoints, the issue resolved.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...