Visual Studio Debug Mode - Peculiar Behaviour - visual-studio

In visual studio 2008 while in the debug mode when we initiate a thread and put break points inside the thread function. Visual Studio doesn't debug giving explanation that i don't have the code. Why does this happens. How to do it

Try unchecking the Just My Code option in Tools -> Options -> Debugging.

Related

Problems with my code after converting from Visual studio 2013 to Visual studio 2017

I have a project that is working correctly on Visual studio 2013 Ultimate.
Now we have installed Visual studio 2017 Enterprise.
When I compile and run my project on VS2017 , on several lines of code I receive a strange error message :
"Cannot obtain value of the local variable or argument because it is not
available at this instruction pointer, possibly because it has been optimized away."
What can I do , because on VS2013 I had no problems at all.
Thank you !
uncheck in the project "optimize code"
Also, set the debug info dropdown to full in the advanced options
go to Debug->Options or Tools->Options
and check Debugging->General->Suppress JIT optimization on module load (Managed only)
if you would like a technical reason, you need to post your code

How do I bring up the debug diagnostics tool windows while debugging my project in Visual Studio 2013 Professional?

While all the other versions and editions of Visual Studio I use on different machines bring up the Diagnostics Tools windows when I launch any of my projects in the Visual Studio debugger by pressing F5, the Visual Studio 2013 Professional edition installation I have doesn't.
It does have the diagnostic tools, though.
How do I get it to start the debug session with diagnostics and to display the diagnostics windows as well automatically upon starting a debugging session?
In VS2015, it has the option "Enable Diagnostic Tools while debugging" under TOOLS->Options->Debugging->General.
But it doesn't have this feature in VS2013. It has the function Performance and Diagnostics hub under Debug menu.
It was the new feature in VS2015:
https://blogs.msdn.microsoft.com/visualstudioalm/2015/07/20/performance-and-diagnostic-tools-in-visual-studio-2015/

Debugger skips breakpoint (Visual Studio 2013 - .asm)

as tittle says I cannot disassembly any code in Visual Studio 2013
I disabled "Just My Code" and "Step Over Properties and Operators" settings
solution is build properly
How do I solve this problem?
problem solved
Project Properties -> Debugging -> Debuger Type change to Mixed

Module view in Visual Studio 2010

I've found this msdn blog:
http://blogs.msdn.com/b/saraford/archive/2008/08/13/did-you-know-how-to-optimize-your-code-for-a-build-290.aspx
How can I get this module view in VS10?
This window is available during debugging.
Set breakpoint in some code line and start debugging. When debugger breaks, select Debug - Windows - Modules in the main Visual Studio menu.

Visual Studio 2013 Throwing No Symbols Loaded When Debugging

I am getting the following error in Visual Studio 2013 every so often when debugging. This didnt happen in Visual Studio 2012.
It seems the default settings in VS2013 changed slightly (from what I can tell anyway). Go into Tools -> Options -> Debugging -> General. Scroll down and uncheck "Warn if no symbols on launch (Native only)". That should stop the message from appearing.

Resources