debugging

.NET Equivalent of Replay Director

I would like to know if there's a 3rd-party tool for .NET that's equivalent to Replay Director. ...

Android: automatically choose debug/release Maps api key?

Is it possible to automatically detect, which certificate was used for signing APK? I'd like to have both debug and release Maps certificates in application and pass valid one to MapView constructor. With such setup I will not make mistake while releasing application - I'm using debug certificate on emulator and my device, then sign wit...

Tools for debugging when debugger can't get you there?

I have a fairly complex (approx 200,000 lines of C++ code) application that has decided to crash, although it crashes a little differently on a couple of different systems. The trick is that it doesn't crash or trap out in debugger. It only crashes when the application .EXE is run independently (either the debug EXE or the release EXE - ...

Qt4 book says "make release", reality disagrees

According to various soures, for a Qt4 app you build the release or debug versions with "make release" or "make debug". In real life, these give errors. make: *** No rule to make target `debug'. Stop Only bare naked "make" works. I'm not sure what it produces. Running "strip" does reduce the executables' size, but gdb isn't find...

Downloading PDB file for machine not connected to the internet

For deubgging some process I will need to download the PDB files for some operating system dll files (OLE32, NTDLL, etc.) That server is not connected to the internet. I know the following method to get the PDB. Get full dump of the process Copy the dump to another machine where internet connection is available Use .reload to downlo...

How do (or can I) hack a gem temporarily while looking for a bug?

I have a gem installed in my home directory on a laptop (eg not THE server). I have installed ruby 1.9.1 and also some other gems, notably right_aws - which allows access to s3, etc with ruby. All works, except there is a bug when I do a query on SimpleDB, and the returned list of items includes an item with any two byte utf-8 characte...

How are clientside security vulnerabilities generally discovered?

I mean in operating systems or their applications. The only way I can think of is examine binaries for the use of dangerous functions like strcpy(), and then try to exploit those. Though with compiler improvements like Visual Studio's /GS switch this possibility should mostly be a thing of the past. Or am I mistaken? What other ways do ...

AbsoluteTime with numeric argument behaves strangely.

This is strange: DateList@AbsoluteTime[596523] returns {2078, 7, 2, 2, 42, 9.7849} But DateList@AbsoluteTime[596524] returns {1942, 5, 26, 20, 28, 39.5596} The question: What's going on? Note that AbsoluteTime with a numeric argument is undocumented. (I think I now know what it's doing but figured this is useful to have as a...

PHP - print all properties of an object

I have an unknown object in php page. How can I print/echo it, so I can see what properties/values do it have? What about functions? Is there any way to know what functions an object have? ...

Grails - showing page processing/render debug information in development mode

I've been experimenting with Grails for the past two days and, so far, I'm really happy with it. Coming from Rails, the only thing I've really been missing here is the dev-mode debug information shown after the page has been served. This is what I mean: Processing UsersController#show (for 127.0.0.1 at 2010-06-14 10:28:44) [GET] Par...

Why is it not possible to evaluate lambdas in the immediate window?

Is there any particular reason? Is it not possible at all or is it just not implemented yet? Maybe there are any third-party addins that allow lambda evaluations? UPDATE: I've found this project on codeplex Extended Immediate Window. Seems that it has been abandoned for some time, but this can be a proof of a concept. Does anybody know...

FlexBuilder debugger: what can the "expressions" tab be used for?

As the title suggests, is there any documentation on the FlexBuilder "expressions" tab, and what expressions it can accept? As far as I can tell, it can show the value of variables, but that's it: comparisons, function and method calls all fail: Edit: this is specific to FB3 — Flex Builder. Apparently FB4 — Flash Builder — is slightl...

Can you see the values of NSUserDefaults anywhere in the xcode debugger?

Can you see the values of NSUserDefaults naywhere in the xcode debugger? Just wondering if this is possible? Thanks, Nick ...

Can output from OutputDebugString be viewed in VisualStudio's output window

I am using C# and VS2010. When I use OutputDebugString to write debug information, should it show up in the output window? I can see the output from OutputDebugString in DebugView, but I thought I would see it in Visual Studio's Output window. I have looked under Tools->Options->Debugging->General and the output is NOT being redirecte...

Visual Studio 2010 Not Debugging .NET 2.0 Code

Please stick with me, this is a strange one. Since upgrading from VS2008 to VS2010, some guys at work (and myself) found that we could no longer debug into our code. None of our breakpoints were being hit. Without giving too much away, my work consists of writing .NET apps which run on top of a custom platform application we’ve develop...

DirectX 10 Resource Leak

At the end of my DirectX application I get "The Direct3D device has a non-zero reference count, meaning some objects were not released.". The application is large and not written by me, how can I go about debugging what resources are not being released? ...

Detecting a stale Mutex

Is there any technique or tool available to detect this kind of a deadlock during runtime? picture this in a worker thread (one of several, normally 4-6) try WaitForSingleObject(myMutex); DoSTuffThatMightCauseAnException; except ReleaseMutex(myMutex); end; or more generally is there a design-pattern to avoid these kind of bu...

How can I make the Eclipse Python debugger more reliable?

I've found that under some circumstances the Eclipse python debugger can be unreliable. For example, when stepping through a memory-hungry Python program I've found that after a certain point the debugger fails to respond. The entire process hangs with 100% cpu load. I've heard (unconfirmed) reports from developers that when this occur...

Debugging with Visual Studio 2010 and VB.NET: Immediate fails due to protection level

It happens quite frequently, more times per day, that with Visual Studio 2010, during the debugging, when I used Immediate commands like: ? NamedVariable I receive the following error: 'NamedVariable' is not declared. It may be inaccessible due to its protection level. In this case also other debug features seems gone, bu...

How do I get my Jscript Debugger to Attach to a Process?

I get the following JScript Debugger error when I click on the Start Debugging button in the Script tab of the Developer Tools (F12) window: Unable to attach to the process. Another debugger might be attached to the process. Closing all browser windows and launching ie again has no effect.Ending the process tree in Windows Task Man...