I have a rather large solution in VS 2008. It contains 3 web applications and a console application as well as numerous class library projects.
I've set the console application as the startup project, but when I debug (using F5) Visual Studio launches development web servers for all three of the web projects.
My question is why, and c...
I should probably know this already, but I'm not sure and I don't see it documented.
I use System.Diagnostics.Debug.WriteLine quite often during the development process to be able to track changes to variables or exceptions as I'm debugging the code. This is meant to make development and understanding what's happening easier only durin...
I have a WinForms app in a single project written in VB.Net 2003 (legacy code). There is a MainForm and a SecondaryForm that is run by the MainForm. When I run the app thru the MainForm, I can debug with no problem. However, if I just run the SecondaryForm, I get the debug error, "There is no source code available for the current loca...
When I debug certain applications (using Visual Studio 2005) I notice strange, randomly named modules are loaded. The names change each time. But they are like di-leyes, jnilel-e, lkmjelxl, llufvuwr. The module path is always identical to the module name. And the module timestamp seems to be the time when the module was loaded.
So it s...
I am running through an iPhone development tutorial and I have a weird bug that I am investigating using the debugger. I have the following code that checks to see if a object is in bounds. I am trying to see what the value of ball.center.x is at a certain point, but because center is a property accessor selector, I don't get the value...
When I try to do that I get the error "Changed to 64-bit applications are not allowed"
Will this be fixed in Visual Studio 2010?
...
I have a static class with no static constructor, but many static members. I throw a TypeInitializationException when the class is first used.
I am breaking on CLR exceptions, and I have disabled 'Just My Code'.
The problem is that I only get this exception when this class is first used; I don't break at the failing static field initi...
I'd like to code in some preprocessor macros to optionally log some information. For example in the .h
//#define ML_DEBUG(x) (x) // flip this bit to do the error logging
#define ML_DEBUG(x) (1==1) // flip this bit to silence
in the .m I implement like:
ML_DEBUG(NSLog(@"Class dealloc: %@", [NSString stringWithCString:object_getClass...
Hello,
I use Visual Studio 2005 & C#. In my FormClosing event I release some resources, that my application uses. But when I debug it and decide to stop (Stop debugging), than FormClosing event doesn't fire and my resources aren't properly released.
How can I avoid this?
...
I often make small methods to assist debugging, which aren't used in the actual program. Typically most of my classes has an AsString-method which I add to the watches. I know Delphi 2010 has visualizers, but I'm still on 2007.
Consider this example:
program Project1;
{$APPTYPE CONSOLE}
uses SysUtils;
type
TMyClass = class
F ...
I have downloaded and installed IE8. I was playing around with the debugger, but I could not figure out how to load external javascript files. It displays the javascript from the main page, but I need to debug the script in the external files. I have googled various articles that show a screenshot of an IE8 debugger with a drop-down for ...
Is there any sense to step-execute release code? I noticed that some lines of code are omitted, i.e. some method calls. Also variable preview doesn't show some variables and shows invalid (not real) values for some others, so it's all quite misleading.
I'm asking this question, because loading WinDbg crashdump file into Visual Studio br...
Hello,
What do gdb users here think about its capabilities in regards to debugging code with templates and STL?
Do you use any tricks to make the debugging any simpler? Perhaps some Python scripts? Or are you satisfied the way it is at present in gdb (ver 6.x, haven't tried 7.x yet)?
Thanks.
...
Possible Duplicate:
Why use windbg vs the Visual Studio (VS) debugger ?
I Use Visual Studio 2005 for C++ development.
What does WinDbg give me, that Visual Studio doesn't?
I know its good for client installations and remote debugging, as it's easy to install.
Other reasons? What are your favorite functions/commands?
...
Hi,
I am trying to debug a stored procedure on SQL Server 2008 with Visual Studio Team System 2008.
When right-clicking the stored procedure in the Server Explorer and clicking on "Step Into", the IDE simply crashes without any error message.
Any suggestions on how to proceed would be greatly appreciated.
Thanks,
Adrian
...
Sorry for the extreme newbie question, but I couldn't find the answer elsewhere and haven't actually ever done anything like this myself (go figure -- I guess that happens when your company uses the production environment for testing).
It would be nice if Visual Studio offered some mechanism for specifying that certain segments of code ...
Hi There
I am new to python and haven't been able to find out whether this is possible or not.
I am using the PyDev plugin under Eclipse, and basically all I want to find out is, is it possible to edit code whilst you're sitting at a breakpoint? I.e. Edit code whilst you're debugging.
It allows me to do this at present, but it seems t...
I've been using debug() more often now, but sometimes I wonder which functions have been flagged for debugging. I know that you can use isdebugged() to find out if a particular function is flagged. But is there a way for R to list all the functions that are being debugged?
...
I would like to run a set of python commands from a file in the PDB debugger.
Related to this, can I set up a file that is automatically run when PDB starts?
...
I want to debug App2.exe, which is started by App1.exe. If App2.exe were a dll I could specify a host application, but this doesn't seem to work with an .exe.
I now use 'attach to process', but this is useless if App2.exe crashes before I do that.
Is there a way to do this with having to attach to the process manually?
...