I'm looking for a way to do debugging in Visual Studio without break point and step into code. Is there a framework or tool or maybe an option in Visual Studio 2010 that will allows you to track every step of code running without setting break point and step into?
IntelliTrace might be an option:
http://msdn.microsoft.com/en-us/library/dd264915.aspx
Related
When debugging a C# application in Visual Studio 2015, I am very often getting this message when hovering the mouse over a variable:
After this it freezes and restart, making it impossible to debug.
Anyone have any clue?
Like that thread shared by duDE, please disable the option "Enable property Evaluation and other implicit function calls" under Tools->Options->Debugging->General.
It seems that checking this option:
Tools -> Options -> Debugging -> General: "Use Managed Compatibility Mode".
avoids Visual Studio 2015 from crashing but disables Edit and Continue... which is no good.
So, I am still looking for a better answer.
Sources:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8653d0d1-c7ed-4194-8fdc-f183d4ff4ec2/problems-with-debugging-in-vs-2015-when-execution-is-in-a-thread?forum=vsdebug
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f3e0c708-0cb4-4e15-9f80-8e713870ebcd/debugging-cant-hover-over-variables-to-see-their-values?forum=visualstudiogeneral
Datatips (mouse hover over variables in debug mode) not working in Visual Studio 2012 / Win 7 64bit
Visual Studio 2015 Debugging: Can't expand local variables?
https://blogs.msdn.microsoft.com/visualstudioalm/2013/10/16/switching-to-managed-compatibility-mode-in-visual-studio-2013/
Quoting the last one:
In Visual Studio 2012, we introduced a new managed debug engine that provides us the ability to more rapidly add new features compared to the older implementation. This can be seen by the number of features introduced in Visual Studio 2013 after only a single year including Managed Return Values, .NET 64-bit Edit and Continue, Async Callstacks Enhancements, and Improved Tasks Window to name a few. Unfortunately, there are still a couple scenarios that are not supported yet with the new debug engine, so in these cases you will have to switch back to the legacy engine.
...so it seems that this is not new.
This issue should be fixed in Visual Studio "15" Preview 5 (available here. For Visual Studio 2015 Update 3 there are, unfortunately, no known workarounds other than those already mentioned.
I have the problem that Visual Studio 2013 crashes when I lock the computer or start another instance of Visual Studio.
I use Visual Studio 2013 with latest patches applied. I always start Visual Studio as Admin.
This seems to only happen with a certain big solution. This problem did not occur to me with other solutions.
I tried to delete the solution and make a clean checkout from TFS, but Visual Studio still crashes.
I know this is not much information, but do you have any idea how to fix this or how to what else I could check?
Additional Information: This still happens even with Visual Studio 2015 on a fresh Windows 8.1 installation...
Here's the error:
Use the following steps to solve the issue:
Source: http://resharper-support.jetbrains.com/entries/24765142-Visual-Studio-with-ReSharper-is-freezing-and-or-crashing
I would copy the solution with quotation but as you can see, there is a lot of text to edit.
Start Visual Studio using the /log switch. Then check the created log file for warnings and errors:
%APPDATA%\Microsoft\VisualStudio\11.0\ActivityLog.xml
If you use a Web Browser to view the file, it will be nicely formatted, due to the accompanying xsl-sheet.
I am upgrading a big solution from Visual Studio 2010 to Visual Studio 2012. All is done, but the code analysis module was changed in Visual Studio 2012 so I got thousands of CODE analysis errors (many CA1703, CA1709, etc.) What can I do?
It is very hard to manage every manually.
These are not errors. They are just warnings.
You can just turn off code analysis
How to: Enable and Disable Automatic Code Analysis for Managed Code at MSDN
or reconfigure Code Analysis
How to: Configure Code Analysis for a Managed Code Project at MSDN
VS2012 is not so diffrent that you may think. It's just diffrently configured by default.
I am not sure there is a perfect answer for that but the code analysis in VS2012 is much better than in VS2010. There are many improvements in VS2012 and I believe there isn't any one shot solution to this problem. You may have to look into every error case by case.
I having the most annoying problem with Visual Studio 2012 settings. Every time I close and re-open Visual Studio I find the Just My Code debugger setting disabled. No matter how many times I enable it, it is always disabled the next time I open the IDE.
Any idea how this could be occurring? All the other settings seem to persist well. It's only the Just My Code setting that's changing.
Well, I found the problem.
I have the .NET Reflector Plug-In installed in Visual Studio and it apparently doesn't like "Just My Code" so it disables it on start up.
I'd like Visual Studio 2008 to do a get latest on the solution when I'm checking in, compile the code, run my tests, and if any of these fail, abort check-in.
Is it possible to do it, and how?
edit: We are using TFS for source control and nunit for testing.
Visual Studio offers a customizable platform, so you can make plug-ins etc. which handles whatever additional stuff you want to do as part of your check in.
Have a look at the Visual Studio SDK and the Team Foundation SDK.