debugging

Visual C++ 2008 runtime error-- debug vs release exe problem?

Hi everyone, I have a Windows executable (native, not .Net) project that I'm trying to pass along to a new team member. It's a graphics modeling tool that uses the Qt widget library and OpenGL. The project runs fine on my box but when we buld and link it on this new member's machine and he tries deubugging it, here's what he sees (not...

How to debug a WebControl at design-time on Windows 7

My environment is Windows 7 + Visual Studio 2008. I want to debug a custom WebControl at design-time. What I used to do in the old days of VS.NET 2003 was to add a statement "System.Diagnostics.Debugger.Break()" to the constructor, then I'd be prompted to attach a second instance of Visual Studio for debugging. In my current environme...

PHP mail not working in one script, but does in another

I have a small php mailer script within a php file that works fine and sends mail fine: $subject = "subject"; $mail_body = "mail body"; $name = "noreply"; $email = "[email protected]"; $recipient = "[email protected]"; $header = "From: ". $name . " <" . $email . ">\r\n"; mail($recipient, $subject, $mail_body, $header); However, if...

Evaluating static methods (with parameters) using MDbg

How do you evaluate a static method that takes parameters using MDbg on the command-line? To call Assembly.GetCallingAssembly(), this works: mdbg> funceval System.Reflection.Assembly.GetCallingAssembly How would you call the Assembly.Load method? eg. Assembly.Load("Foo.Bar") ...

if(0 == '%') echo "WTF, Php, why can't you compare things sanely?"

I just reduced a crazy bug to what's in the title of this question. I'm sure there's a Perfectly Reasonable Explanation for why Php thinks that 0 == '%' (or any other special character, I think). I thought it would be good to get that explanation on StackOverflow! ...

Deciphering variable information while debugging Java

Hi, I'm using IntelliJ IDEA 8 for debugging some Java, but this question could probably apply to all Java debuggers. In the list of variables, they are displayed as: myVariable = {some.package.SomeClass@12345} I am curious about the number that comes after the class name. What is the number exactly? Would two variables have the...

"No source available for main()" error when debugging simple C++ in Eclipse with gdb

Hi, I'm having trouble debugging a C++ program in Eclipse (the latest RC of Helios, updated with latest CDT from within itself) on OSX. The program is very simple (esentially Lesson 2 from NeHe's OpenGL tutorials), consisting of one cpp file and, using OpenGL and Cocoa frameworks, and linking with libSDL.a and libSDLmain.a. The struct...

Debugging python programs in emacs

How to debug python programs in emacs? I use python-mode.el I get reference like import pdb; pdb.set_trace(); but not sure how to use it. ...

Differences of behavior in saving/loading file between iPhone and iPod Touch

Hi, I have developed an application (a Sudoku to be accurate) that runs perfectly smoothly on the iPhone (after of course several minor versions to do some bug fixing). But I have had several reports of issues on iPod Touch exclusively. The normal modus operandi is the following: the first start does not load anything from file the ...

What low cost/no cost bug tracking system do you use?

Possible Duplicate: Free/Cheap Task/Bug Management software I'm on a four man dev team. I've managed to persuade my manager that we need a bug/issue tracking system. I've been playing with FogBugz for a while, but he isn't prepared to pay 100USD/month for it. Ideally it would link into our Version control system (currentl...

What % of programming time do you spend debugging?

What % of programming time do you spend debugging? What do you think are acceptable percentages for certain programming mediums? ...

Can objects be unwinded before they are created on stack?

We have been debugging a strange case for some days now, and have somewhat isolated the bug, but it still doesn't make any sense. Perhaps anyone here can give me a clue about what is going on. The problem is an access violation that occur in a part of the code. Basically we have something like this: void aclass::somefunc() { try { ...

Is there any way to start the Ruby debugger on exception?

Is there any way to start the/a Ruby debugger whenever the code throws an exception, without me wrapping the code like this: begin #do something rescue debugger end I'd like to have it in such a way that if the do something part raises an exception, the debugger will start. It would be nice not having to modify the code to add beg...

VS2010 RC - only 100 std::map elements in debugger

Hi, I have a small problem during debugging my App in VS 2010 RC when I want to see all the elements of std::map container. When debugger reaches the breakpoint and I want to check the values of the map in element inspector (in 'Locals' windows and in pop-up windows after hovering the variable name with mouse as well) and I'm scrolling ...

Visual Studio insert tabs/newlines in breakpoint print message (tracepoint)?

Anyone know how to place a tab or newline into the print message of a breakpoint and have it show up correctly? Thus far I've tried '\t' and '\t' which give the same thing in the debug output. I've also tried just putting in 4 spaces, but they get removed after I click OK in the 'When Breakpoint is Hit' dialog. I'm using VS.NET 2008 wi...

Getting Null exception error in loop. Trying to debug.

Im having some problems parsing a string to a textbox type, im using the code in a diffrent form in the program and its working fine, but when im tying the same two lines here i get a null exception the two lines of intrest is string txbName = "br" + bruker + "txt" + 'B' + o; txtBCont = (TextBox)Controls[txbName]; new info Greg p...

Debug servlets with eclipse (running resin)

I am using eclipse (Java EE edition) to write Java servlets and I would like to utilize the debugging functionality. However, I was reading the tutorial to set this up and when I got to the stage the choose a "Server Runtime Environment", I got stuck. I am using Resin, which does not appear to be in the list of available server runtime...

For a Visual Studio ASP.NET solution, Rebuild (or Clean, then Build) doesn't seem to fix issues with binary mismatch for debugging

I from this answer what the differences are between Build, ReBuild and Clean solution, but I'm not clear about whether it only updates the binaries in the project dir(s) or also makes sure the ones in the IIS webroot, caches, etc. are replaced. Sometimes, I'll add a breakpoint and attach to the IIS process to debug and it will warn me t...

Does exist any utility to know the size of a compiled function in an executable?

I want a report showing me the size of diferent symbols(compiled) in the executable. Something like .map files in Delphi, but generic if possible. nm from binutils, shows start address(?), maybe could i use that information? (I'm using object pascal + freepascal compiler) ...

Using Type.GetType() with unreferenced assembly with Cassini/Visual Studio Dev. Server

I've got some code var type = Type.GetType("namespace, assembly"); return Activator.CreateInstance(type); thats works fine in most situations, however when this code is referenced in the Global.asax of a website that is debugged using Cassini/Visual Studio Development Server the type cannot be found. The type is in an assembly that...