I recently had the pleasure of debugging a monolithic (1000+ modules, several with over 10000+ lines of code) COBOL dotNet application. Every time I advanced to the next line, the IDE would spin for a minute or more. This is not the ideal experience when debugging your code line by line. I spent some time researching various answers for my quandary. The following details what worked for me and some additional options that may work for others.
- Close, not minimize, the Autos, Locals and watches. Use the immediate window to display the value of a variable.
- When debugging, be careful not to hover the mouse over any variables. When you do the DataTip will display, requiring additional computation. There may be a registry setting you can set to disable DataTips, unfortunately, I did not see an option in Visual Studio.
- Disable edit and continue in your debugging options.
- Disable your antivirus.
- Cache your Symbols.
Thank you for reading and be sure to share it forward.