debugging

Enumerate or list all variables in a program of [your favorite language here]

A friend asked me last week how to enumerate or list all variables within a program/function/etc. for the purposes of debugging (essentially getting a snapshot of everything so you can see what variables are set to, or if they are set at all). I looked around a bit and found a relatively good way for Python: #!/usr/bin/python ...

What is an "Abort trap" & how do I debug it?

I'm getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389 Abort trap "$TARGET_BUILD_DIR/$EXECUTABLE_PATH" -RegisterForSystemEvents I understand is a problem in my code, but then I don't figure how solve or found it. The strange thing, is that I get this with this call: -- This is the ...

C++ Parameter's Value Changes Between Stack Frames in std::vector

I've run into a really strange bug, that I'm hoping someone can explain. I have a simple std::vector<V3x>, where V3x is a 3d vector (the linear algebra kind.) The following code causes a std::length_error exception to be thrown: std::vector<V3x> vertices; int vertexCount = computeVertexCount(); vertices.resize(vertexCount); // throws st...

What's the best way to debug Javascript on IE ?

What's the best way to debug Javascript on IE ? ...

Javascript Debugging in Visual Studio 2008

I'm trying to debug javascript code just by adding a breakpoint in VS2008, but the debugger's not stopping. Do I have to do some special setup in order to enable javascript debugging? Or does the code have to be in a separate js file? ...

Delphi IDE hangs while debugging threads

This is kind of a follow-up question to this. When I'm debugging threads in Delphi (BDS 2006 with update 2) my IDE often hangs, e.g. when the execution runs into a breakpoint that I have set after the app started. Do you have similar experiences? What do you do about it? ...

How can I guarantee catching a EXCEPTION_STACK_OVERFLOW structured exception in C++ under Visual Studio 2005?

Background I have an application with a Poof-Crash[1]. I'm fairly certain it is due to a blown stack. The application is Multi-Threaded. I am compiling with "Enable C++ Exceptions: Yes With SEH Exceptions (/EHa)". I have written an SE Translator function and called _set_se_translator() with it. I have written functions for and set...

How to start aspnet_wp.exe without firing Application_Start event.

I'm trying to debug a web service (Windows XP SP3, VS 2008, ASP.NET 2, VB.NET). For most of it, if the asp.net worker process is already loaded, I can start the Windows form that calls the web service, attach to aspnet_wp.exe in Visual Studio, and then debug to my heart's content, but catching the Application Start event in global.asax ...

Debugging to Sleep

I'm having trouble with Debug(f11,etc.) using VS2008-SP1 and Vista-SP1. It randomly, but routinely, puts my computer in the sleep mode. I've looked on the web for similar problems and found nothing. ...

How to track memory allocations in C++ (especially new/delete)

How can I track the memory allocations in C++, especially those done by new/delete. For an object, I can easily override the operator new, but I'm not sure how to globally override all allocations so they go through my custom new/delete. This should be not a big problem, but I'm not sure how this is supposed to be done (#define new MY_NE...

JavaScript debugging issue with vs2005

I encountered a strange problem today. Whenever i put a breakpoint in one of my js files, the breakpoint is not hit. I use Visual Studio 2005 in combination with TFS. In ie the disable script options are both disabled. The only thing that changed is that I installed Visual Basic 6 for an old project, but I don't see how that would imp...

Is there a posibility to break on every object reference in eclipse debugger ?

Suppose I have a class public classs MyClass { private Set<String> set = new HashSet<String>(); //and many methods here } is there a possibility to make an eclipse debugger stop at every line where set member is used ? ...

a good testbed to debug SCORM courseware (Applet) without LMS

What would be a nice testbed to debug JAVA APPLET based SCORM content package (eclipse). debugging with a real LMS (like Moodle) usually requires uploading package in a zip file to LMS (slow..) ...

Error "Couldn't discover the 'ccc-analyzer'" when running scan-build

Hi, I'm triying to find leaks in my project chibi-ORM using the tool of scan-build as suggested in other threads. But when run from the terminal: /Users/mamcx/Downloads/checker-0.138/scan-build -k -V xcodebuild I get this: 009-01-13 10:33:18.296 xcodebuild[14025:4213] Warning: Couldn't discover the 'ccc-analyzer' compiler's built-...

When debugging an ASP.NET MVC app, how can I get my changes to Site.css to show up?

I'm debugging on my development machine and when I make changes to the css file, they don't show up and I can't figure out why. I'm using firebug and inspecting the css and the changes are not there. I've tried clear private data and building the project first then running it but nothing seems to work. Thanks. ...

How to debug a Visual C++ Runtime Error

I am writing a C++ COM object in Visual Studio 2008 that is an Internet Explorer Browser Helper Object. Recently, when running in IE, IE has started frequently popping up a dialog titled "Microsoft Visual C++ Runtime Library" with an error message "Runtime Error!" and going on to say that "The application has requested the Runtime to ter...

Easing debugging with interchangable singletons?

I have a few classes, such as those that outline database table structure or those that outline the application's configuration, which do not change state at all throughout the program's execution. I currently have these classes as singletons and the classes that wish to retrieve information request the class instances (eg. from the comm...

VS2008 SP1: Pressing F5 takes ages to start website

I have a Silverlight project (with ASP.net MVC web project) Suddenly, when I press F5 it takes like 20 seconds, from the moment that Internet explorer opens, to when the debugger is attached. Mind you, it is a project that works perfectly since about 3 months. The problem just started last days. When I start without debugging, everythi...

How are debug consoles implemented in Python?

I've seen a couple of Python IDE's (e.g. PyDev Extensions, WingIDE) that provide a debug console - an interactive terminal that runs in the context of the method where the breakpoint is. This lets you print members, call other methods and see the results, and redefine methods to try to fix bugs. Cool. Can anyone tell me how this is impl...

C# - Attribute to Skip over a Method while Stepping in Debug Mode

Is there an attribute I can use on a method so that when stepping through some code in Debug mode the Debugger stays on the outside of the method? ...