debugging

Disable EXCEPTION_DEBUG_EVENT from being passed to an attached debugger

I'm dealing with an anti-debug application which disables EXCEPTION_DEBUG_EVENT from being passed to my debugger, instead it executes its SEH and UnhandledExceptionFilters. I tried it with 3 different debuggers (even selfmade one) My debugger receives other debug events like LOAD_DLL, CREATE_THREAD etc Exceptions are not passed when fi...

C#: When debugging in a catch can you get at a non-explicitly declared exception?

It is a compiler warning and generally frowned upon to have unused variables in your code. Therefore the following will generate a warning because e is unused try { throw new InvalidOpreationException(); } catch(Exception e) { } The correct way of doing this is to not give the exception a name unless you're going to make use of it: ...

FireBug extension to examine PHP variables

We have FireSymfony that allows one to view the Symfony, PHP variables in a firebug panel, so I wonder whether there is a similar extension that allows me to view PHP variables for general PHP apps ( not just Symfony apps)? ...

VS2005 debugger disassembly window

I use PB 6.0 to debug my Windows-CE image. Whenever I run in this mode VS2005 opens the disassembly window each time it hits a debug break in a file that it does not have its source (pdb file for the module). This is really annoying as I would like to stick to the output view. I could find a setting to disable this disassembly window aut...

Can I make make a HALT_ONCE macro?

I'm trying to figure out a transparent solution for debug halts that repeatedly get hit in my game. For a trivial example; say I have a halt in my renderer that tells me when I'm trying to use a NULL material. My renderer handles this fine but I still want to know what I'm doing wrong. This halt will hit every frame now unless I manuall...

Different code / config in Release & Debug build (Obj-C)

Hi, I'm writing a Cocoa app in Objective C that's communicating with a webservice and I want it to connect to a sandbox in debug mode and to the real webservice in release mode. All I need is to change on line of code where an object that holds the configuration gets instantiated (with a different init-message and different parameters). ...

Pulling exception out of its users

What is your best solution for pulling out exception occuring on a user computer? For example I send automatically a email when an exception is thrown which body contains the call stack. Have you experience other quick way to handle user bug? ...

Debugging php on ubuntu 9.04?

Is there any IDE (linux based) for PHP that can be used to debug? Or any one can help me to configure debug properties/settings of eclipse? Now i am using ubuntu 9.04. i have tried to debug but havn't tried to configure, because i don't know how to configure it. can you tell me the exact way? please help me. ...

QtCreator - Debugging as superuser on Mac OS

Hi, I'd like to debug an application in QtCreator on Mac OS which reads directly from hard disk (/dev/rdisk0). If I run this app from Terminal using sudo ./MyApp, it's working, however when I debugging it under QtCreator, it fails due to lack of permissions. I tried to launch QtCreator itself from terminal using "sudo open QtCreator.ap...

How can I debug a program when debugger fails.

I am debugging an Iphone program with the simulator in xCode and I have one last issue to resolve but I need help resolving it for the following reason: when it happens the program goes into debugging mode but no errors appear (no BAD ACCESS appears) and it does not show where the code fails. Putting some variables as global helps me to...

c++ debugging in vis studio 2008, how to break when a variable becomes zero

I can detect when a variable changes, but it changes so often that its no use - what I want is to detect the moment that a variable becomes zero. Thanks, ...

Best text editor for debugging jquery code

Best text editor for debugging jquery code or creating jquery plugin ...

Getting the state of variables after an error occurs in R

Let's say I have just called a function, f, and an error occurred somewhere in the function. I just want to be able to check out the values of different variables right before the error occurred. Suppose my gut tells me it's a small bug, so I'm too lazy to use debug(f) and too lazy to insert browser() into the part of the function wh...

Is there a Conditional attribute at the class level?

I want to use the conditional attribute on a class, or more to the point, is there something that give that effect? Basically I don't want the class to be there in debug mode. I also don't want to have to wrap each call in a #if DEBUG directive. using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...

Is it possible to debug both a Silverlight and WCF project at the same time?

I have 3 projects in my solution: 1) A silverlight Application Project 2) ASP.Net Web Application Project 3) A WCF Service Application. Projects 1&2 have a service reference to project 3. The binding type is basicHTTPbinding. If I set project 2 as the start-up project, I am break points set in both project 1 & 2 are hit, but not break ...

How can I get the name of a calling function within a module in Mathematica?

If I write a function or module that calls another module, how can I get the name of the calling function/module? This would be helpful for debugging purposes. ...

debugging a django app on a server running fcgi

I developed my django app on my local machine, however when I uploaded it to my server (dreamhost, runnig fcgi) I got some problems. How can I debug django on my dreamhost server that's running fcgi? ...

ASP.NET MVC Routing issues

Is there any tools or utilities to help in debugging ASP.NET MVC Routing issues? ...

Recommended reading on general debugging techinques

What reading would you recommend on general debugging techniques? I am more interested in principles and best practices than in specific platform solutions. For the record I mainly work with .NET (F#, C#), and dabble in Haskell and Ocaml. One of these Friday evenings we talked about debugging with my colleague on our walk home. I was su...

See all objects tagged with "Make Object ID" in Debugger

When debugging you can tag an object with "Make Object ID" so you can follow instances of the object through the call stack and object graphs. Is there any way to see a list of all objects that you've tagged regardless of the current stack and local variables? ...