I have an application(not mine) that just seems to hang. I would like to see what it's trying to process, or if it's processing anything. Is that a button in visual studio that I can click that will break at the point it's trying to process?
If you click on the left side of the editor (the place where you actually edit the text), then you will set a breakpoint on that line. When debugging, if your program reaches that line of code, then Visual Studio will stop running your program and let you debug it.
So just set a breakpoint immediately before where you think the problem is.
Related
As the title describes, how I could stop visual studio from auto-expand code region? I'm using visual studio on a C++ project.
For example, sometimes when I delete some part of my code it unfolds a lot of regions far away up from where the line was deleted.
This behavior also happens sometimes when I'm scrolling, from nothing it expands the region.
I saw there's an option on edit > outlining > stop outlining
But this disables all kind of code folding, I just want to stop visual studio herself from auto-expanding any kind of code.
This is frustrating, it happens a lot of times and I need to stop what I'm doing to fold everything again.
Anyone know why you cannot use Greenshot in Visual Studio? I hit the Screen Print button and it does not bring up the cross-hairs to drag my window size. Instead it just takes a plain windows screenshot. I looked for keyboard commands that might override it but didnt see anything at first glance. It works for every other program but not when Visual Studio is the active window.
It's because your visual studio is running in a higher level (permission wise) than your greenshot instance.
for a one time test, close Greenshot, and run it as administrator (right click on the file, run as administrator).
As a more permanent solution, you can just set the compatibility mode for the file to be run in admin mode, and then when it's started on start up it should capture your VS instances as well :).
Edit:
Just in case, you can easily figure out if anything else is wired to a shortcut by doing the following:
How do you stop Visual Studio showing that annoying tab page whilst debugging after pressing break:
For the record - I can debug fine and alter code and resume running the code fine. It's just a pain that it takes focus away from the code that you were looking at before you break the program.
This extension should do exactly what you want.
http://visualstudiogallery.msdn.microsoft.com/fdbb2036-471e-40a7-b20e-31f8fd5578fa
I am working on a C# project in Visual Studio 2010 express, I have a breakpoint that only shows up when I am in the debug modus, I can remove it there, but it will show up again as soon as I start the debug modus again. Allways on a specific codeline, I tried to leave that line empty, then it jumped to the next one. It didnt showed up as I comented the whole code after that line out.
I dont have a breakpoint window in the debug menu ( maybe because it is the express version) so I can't acces to the "remove all breakpoints" function. Do I have to do some change in one of the debug files? Wich one?
thanks
While debugging, whenever we step into a method, the file which defines that method will be opened and remains open after debug - this messed up my files in Visual Studio. I want to be able to close those opened-by-debugger files after the debug finished.
Let's say I'm opening 5 files already and start debugging. After the debug, I have 10+ files opened which means there are 5+ "new & strange" files opened by the debugger. I don't want them, and just want to close them quickly
How can I do this?
There used to be a option "Recycle Windows" in former versions of Visual studio, which only added one additional window for all debug windows. But apparently this has been removed.
I have an idea after a while:
You can pin the tab (tab == file) using addon Visual Studio 2010 Productivity Power Tools. Then after the debug just right click tabs area and call "Remove all but pinned".