debugging

Why does my Eclipse project have phantom debugger breakpoints?

I've got a small project which, when run in the Eclipse debugger, always seems to stop in FileInputStream.class line 106, where files are opened. There are no breakpoints set, but Eclipse behaves exactly as if I have a breakpoint here. If I clear all breakpoints, it still happens. I have a second much-larger project in the same Eclips...

How to make pdb recognize that the source has changed between runs?

From what I can tell, pdb does not recognize when the source code has changed between "runs". That is, if I'm debugging, notice a bug, fix that bug, and rerun the program in pdb (i.e. without exiting pdb), pdb will not recompile the code. I'll still be debugging the old version of the code, even if pdb lists the new source code. So, doe...

Using XDebug in UEStudio for PHP debugging

I've just downloaded the latest version of UEStudio 09 and am trying out the integrated XDebug features. I've got xdebug installed, and have verified that via my php_info(). I've written a very basic script to test it out: 1: <?php 2: $x = 5; 3: $y = $x + 1; 4: $z = 10; 5: while ($z--) { 6: echo $x, $y, "<br />\n"; 7: } I'...

VS debugging "quick watch" tool and lambda expressions

Why I can’t use lambda expressions while debugging in “Quick watch” window? ...

How to build OpenSSL in release mode with symbols?

I generally build my openssl libs by doing this: perl Configure VC-WIN32 ms\do_masm nmake -f ms\ntdll.mak nmake -f ms\ntdll.mak test For debugging minidumps, I'd like to get a pdb file for the 2 dlls (while still building them in "release" mode). I've added /Zi to the CFLAGS part of ms\ntdll.mak, but I still get "Binary was not bui...

Standard methods of debugging

What's your standard way of debugging a problem? This might seem like a pretty broad question with some of you replying 'It depends on the problem' but I think a lot of us debug by instinct and haven't actually tried wording our process. That's why we say 'it depends'. I was sort of forced to word my process recently because a few devel...

step through debugging for classic asp with VS2008

Hello, I am coming from the django world to maintain a fairly complicated classic asp site. Unfortunately the site is riddled with uncommented, copy/pasted, spaghetti code spread out over several hundred files hidden away in a few dozen directories. To be curt, it's a bit of a nightmare ;) Anyway, I am most familiar with eclipse, and ...

How do I describe a local function to (trace)?

In common lisp, the function (trace name) can be used to see output about the calls to a function. If my function is declared with local scope, how do I describe it to trace? eg, how do I trace bar, below: (defun foo (x) (labels ((bar (y) (format t "bar: ~a~&" y))) (bar x))) ...

gprof and arguments to executable

when using gprof: gprof options [executable-file [profile-data-files...]] [> outfile] if you have options to pass to the executable like: gprof a.out --varfred=32 then gprof assumes that i am passing an invalid option to gprof instead of the a.out. Any way to get around this? ...

Debugging JBehave scenarios

I'm having trouble debugging my jbehave tests. I cannot get maven to start the jbehave tests and stop at a breakpoint. I have this in my pom: <pluginManagement> <plugins> <plugin> <groupId>org.jbehave</groupId> <artifactId>jbehave-maven-plugin</artifactId> <version>2.0.1</version> </plugin> </plugins> </pluginMa...

How to get GDB not to print function parameter values when "stepping into"?

When hitting breakpoints and stepping into functions, gdb version 6.8 prints the name of the function followed by the function arguments. It just so happens, in the program I'm debugging, one of the parameter values is a HUGE record being passed by reference. gdb prints the variable name followed by ALL of its member variables. It liter...

How can I find all the units in my Delphi app?

It's easy enough to find all your external dependencies. Just run the program and open up the Modules info window. But how can I find all my internal dependencies? I know the program keeps a list of all the units, because I've traced my way through the initialization code a time or two. But is there any easy way to access this list f...

How to "watch" character values of a string on Visual Studio?

I remember I could add modifiers to a watched variable during debugging to make its display in different formats in Delphi. Such as "str,m" would display string in its binary representation. Similarly I'd like to look at binary representation of a string to see character values for .NET applications on Visual Studio 2008. What's the eas...

Breakpoints not being hit

When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent getting hit. When entering debug mode they just show an empty red circle with a warning triangle instead of the normal full circle. This is strange because debugging was working fine until now, and no configuration changes have been made in my environment for...

VisualStudio2005 very slow in debugging.

I have 1GB ram in my pc. In my solution totally 48 projects are there. But I am debugging only one project. Each project is depending on other one. While debugging the project why visual studio is taking much memory usage. Also system is getting hanged. Can any one please let me know if you have any suggestion to solve this debugging ...

Help postmorten debugging of a mixed mode Win32 application

Here's the situation: Background I have a mixed mode .NET/Native application developed in Visual Studio 2008. What I mean by mixed mode is that the front end is written in C++ .NET which calls into a native C++ library. The native code does the bulk of the work in the app, including kicking off new threads as it requires. The .NET co...

Crash shows Visual studio option. But not showing dont send message.

Hi All, When I get any crash in my pc, I used to get don't send dialog box. But recently it is always showing some dialogbox, and it is asking to debug in visual studio. I dont want this dialog option. How can I remove this option. Could any one knows information about this. Thanks & regards, Haranadh ...

Load event debugging

I have got a strange behavior with VS 2008. All exceptions raised during the load event are not shown in the debugger. VS does not stop and the rest of the code (of the load event) is not executed. This only happens in the load event and never happens in the other events where I can go step by step and the window pops up with the excep...

Can the "Application Error" dialog box be disabled?

I am using Hudson as a continuous integration server to test C/C++ code. Unfortunatly, I have a bug somewhere that causes memory corruption, so on some Windows machines I will sometimes get a "Application Error" dialog box explaining that an instruction referenced memory that could not be read. This dialog box pops up and basically han...

To remove #ifdef DEBUG parts for release or not?

Hello, When releasing source code for someone else to see, when coding style is not well defined (no pun intended) do you remove the #ifdef DEBUG parts? (that is the parts that are compiled only when DEBUG is defined) If I remove it, it makes the code looks better (or me look better - do I really want someone to know I've debugged, and...