Some say that a debugger is the mother of all evil. What do you think of this approach?
I have a friend at work, a colleague, who's completely against using a debugger whatsoever.
I asked him: So, you just write code without bugs? Is that it?
He answers: Of course not. Everyone makes mistakes, the difference is how you deal with them ...
I have a dll project in a solution that I want to debug. The calling application is in a different path and the DLL must be placed inside that path. When I build the debug version and copy+paste the produced DLL into the calling application's path, I get an error message that there are no symbols and that the binary wasn't built by the ...
Does anyone know if it's possible to force terminal to append a \n to every line it prints (or something similar)?
I'm trying to debug some insane code which gives me errors the full width of my (24") screen and three lines long, so I'd appreciate not having to copy things into gedit and manually spacing them out every time I press make...
I would like to have the output of the python pdb 'l' command printed to the screen after every command I enter in an interactive debugging session.
Is there a way to setup python pdb to do this?
...
Running into a prickly problem with our web app here. (Asp.net 2.0 Win server 2008)
Our memory usage for the website, grows and grows even though I would expect it to remain at a fairly static level. (We have a small amount of data that gets stored in state).
Wanting to find out what the problem is, I've run a System.GC.Collect(); a fe...
I've been travelling and developing for the past few weeks.
The site I'm developing was running well.
Then, the other day, i connected to a network and the page 'looked' fine, but it turns out the javascript wasn't running. I checked firebug, and there were no errors, as I was suspecting that maybe a script didn't load (I'm using the ...
I am working on code (legacy code) which uses Apache Xerces-C library. I am trying to view the value of DOMString (and other related DOM objects) in Microsoft Visual Studio Debugger but in vain. I have tried the following
1) I Added the following in the autoexp.dat file:
;---------------------------------------------------------------...
Is there a way to debug a regular expression in Python? And I'm not referring to the process of trying and trying till they work :)
EDIT: here is how regexes can be debugged in perl :
use re 'debug';
my $str = "GET http://some-site.com HTTP/1.1";
if($str =~/get\s+(\S+)/i) {
print "MATCH:$1\n";
}
The code above produces the foll...
In the following code MessageReceived is on a different thread to label1 and when trying to access it I will get this error:
Cross-thread operation not valid:
Control 'label1' accessed from a
thread other than the thread it was
created on.
foo.MessageReceived += new Agent.MessageReceivedHandler(foo_MessageReceived);
void fo...
I was finishing up a code mod and wanted to run my program through Valgrind to make sure I've got all memory accounted for, but my program failed an assertion that doesn't fail when running on its own. Is it possible to stop in the debugger while running from Valgrind? I'm currently wading through the manual, but figured I could get my...
I have a project which has a calling structure similar to this:
main project/application
my library code
someone else's library code
my library code
Everything's written in C#, and I have access to 'someone else's library code'. Their code is not included in my project, because it's open source and not my code. I can make debug ve...
Greetings everyone, going to need some help in clearing this exception.
I get the following when debugging my compiled program in Microsoft Visual C++ 6.0:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\tsappcmp.d...
I'm new to debugging with Eclipse.
I try to debug my app to know where it segfaults.
The problem is that Eclipse breaks within the STL, which is very annoying.
For example: I created a breakpoint in my source file on line 134, which works fine
but if I hit F6 for "Step Over", Eclipse/gdb breaks in basic_string constructor used in the ...
Hi,
I have a rather simple web-service which exposes data from sql server. It will be used to synchronize data between 2 different databases (SQL Server and Lotus Notes). We're in the stage of testing the web-service and poll it with 20 req./min., the first 2 minutes it goes OK, but after the second, we're getting an exception, obviousl...
We are building a WPF app and are seeing some random and very strange behavior which seems to originate from within the BCL. We are catching an unhandled exception with the following stacktrace:
[ArgumentException],
"TimeSpan does not accept floating point Not-a-Number values."
at System.TimeSpan.Interval(Double value, Int32 scale)
...
Is it possible to attach a debugger to an AIR process like it is in Java? What's the best option for me to debug an AIR application that must be done in production (will not work in FlexBuilder due tom some integration issues).
...
I'm running a debug build on the iPhone with Leaks. I'd like to break at certain points to see if particular leaks have occurred yet. This would allow me to narrow down where the leak is occurring by process of elimination. However, the debugger is ignored while Leaks is running. Any suggestions?
...
What is the standard macro used to write text to the output window in Win32 (outside MFC)?
I am looking for something which the pre-processor conditionally excludes from the release build.
(This might sound like SO sacrilege but I've merely forgotten this one and there was too much noise on Google. We are on the verge of handcrafting ou...
I'm maintaining an old asp classic application.
It uses Response.AppendToLog as its sole debug logging system.
I only debug it on my localhost so the logging files are on my harddrive in the %SystemDrive%\inetpub\logs\LogFiles folder.
I'm looking for a tail-like program that shows these debug messages live.
Maybe with a possibility to ...
Hello
I am using GDB to debug a closed source program on Solaris 10 x86.
I attach gdb to the program and continue execution, however when I want to pause execution later to examine some memory I cant. When I press CTRL-C it only prints ^C instead of pausing the program and dropping me to a (gdb) prompt.
bash-3.00# gdb --pid=1521
GNU g...