debugger

Bidirectional (or reverse) debugging

Has anyone actually used a reversable debugger? The only product that Google turns up is UndoDB. It is for apparently for Linux only. ...

What is the format (schema) of .NET PDB files?

What is the format (schema) of .NET PDB files? I'd like to parse the information out of these files so that I can display the correct lines of code (line numbers) in a debugging application. ...

Weird behaviour of C++ destructors

#include <iostream> #include <vector> using namespace std; int main() { vector< vector<int> > dp(50000, vector<int>(4, -1)); cout << dp.size(); } This tiny program takes a split second to execute when simply run from the command line. But when run in a debugger, it takes over 8 seconds. Pausing the debugger reveals that it is ...

Why does Visual Studio debugging mode does not work properly (performing F5 when F11 was pressed)

Hello. I've faced the strangest problem with Visual Studio C# debugger in my career. In short after break point in my code was hit I cannot step through the code. F11 (step into) and F10(step over) work for several times, but eventually VS performs F5 (continue) action. I still able to debug using break point on every line. This behavi...

Debugger usage

Do you use the debugger of the language that you work in to step through code to understand what the code is doing, or do you find it easy to look at code written by someone else to figure out what is going on? I am talking about code written in C#, but it could be any language. ...

What is a "first chance exception"?

What exactly is a first chance exception? How and where does it originate in a .Net program? And why is it called by that peculiar name (what 'chance' are we talking about)? ...

Breakpoints behaving strangely in visual studio

I am having two issues with the debugger using visual studio version 9.0.30729.1 using .net 3.1 Issue one - I hit a breakpoint, and F10, F11 do not move me to the next instruction. If I repeatedly press F10 I will eventually step to the next instruction. I can place another breakpoint further down in the code and do an F5 to get to t...

C++ Eclipse debugger: "Cannot find bounds of current function" and doesn't stop at breakpoints

I am using Ubuntu for one of the first times and eclipse's debugger has given me more trouble than I can deal with. For the moment I just want to try to figure out how to get the "Cannot find bounds of current function" to stop so I can see where my flow of control goes awry. I know this is a vague question, but I'm willing to quickly ...

Is there a interactive debugger for php like ruby's debugger?

I watched the Creating a weblog in 15 minutes with Rails 2 and after 9 minutes in the video he shows ruby's interactive debugger, which allows you to call functions/methods from within a running script. This goes way beyond breakpoints and looks very useful. Is there something for PHP that gives similar functionality? ...

Understanding Symbolic Debugger

I would like to understand how symbolic debuggers work?. What are debug symbol table and how it facilitates source-level debugging. I am quite oblivious to the behind the scene actions of debuggers..what actually happens when I provide '-g' option to gcc, what gets written to object file and such intricacies. I would be glad if SO commun...

Visual Studio 2008 Debugger Has Gone South...

Dell Dimension 5621 - Win XP SP2 VS Studio 6.0 & 2008. We support ASP pages. Usually I have had no problems using Visual Studio 2008 debugger with ASP pages from VStudio 6.0. In fact, up until last week, worked great. I was actually commenting to boss week ago wish that debugger had been around when VS 6.0 came out 10 years or so ago. ...

DebuggerDisplay Attribute does not work

This is a C++/CLI WinForms project targeting the .NET 2.0 framework. I am using Visual Studio 2008. How do I get it to work? EDIT: Code snippet [Serializable] [DebuggerDisplayAttribute(L"ID={EmployeeID}")] public ref class Employee { [ReadOnly(true)] int nID; property int EmployeeID { int get() { ...

What features would a *perfect* Python debugger have?

Please tell me which features you wish your current Python debugger had. I'm creating a new Python IDE/debugger and am looking forward to challenging requests! ...

iPhone Dev: XCode debugger does not stop on breakpoints

I've got XCode 3.1.2 on OS X 10.5.5. I have an iPhone project that builds fine but the debugger will not hit any of the breakpoints I set. I've tried all the standard fixes that I find on the net: I've turned off 'Load Symbols Lazily' in XCode preferences My active config is Debug Optimization level is 0 in build settings I've cleaned ...

What are data breakpoints?

I just came to know that there are data breakpoints. I have worked for the last 5 years in C++ using Visual Studio, and I have never used data breakpoints. Can someone throw some light on what data breakpoints are, when to use them and how to use them with VS? As per my understanding we can set a data breakpoint when we want to check f...

Are Debug.Assert/Debug.Fail automatically conditionally compiled #if "DEBUG"

Are Debug.Assert/Debug.Fail automatically conditionally compiled #if "DEBUG"? Or is it more like if there is no debugger attached (even in release) it just doesn't do much of anything? If so, are there performance implications of leaving them in your code? Or are they really not meant to be in production code, only test or Conditional...

MSIL debuggers - Mdbg, Dbgclr, Cordbg

I've been doing some MSIL work and have come across references to these three debuggers. What's the difference between them? Is one of them better than the others wrt. functionality? Are there others that I have missed? ...

Can I make pdb start debugging right away?

I want to debug a python project The problem is, I don't know where to set a break point, what I want to do, is be able to call a method SomeClass( some_ctor_arguments ).some_method()` and have the debugger be fired right away How do I do that? I tried pdb.run( string_command ) but it doesn't seem to work right >>> import pdb >>...

Detect terminated hung application

I created a minimal debug loop which runs and debugs a process. When the process hangs and the user tries to close it, Windows gives the message box with the option to wait or end now. I would like to try to detect when they hit end now, so my debugger can gather relevant information. However I cannot seem to figure out how to detect th...

Visual Studio Debugger doesnt step into unused variable declarations

The debugger does not want to step into an unused variable. If I declare (var x = "hola") it doesn't recognize x and says that it doesn't exist in the current context. When I do some work with x then it recognizes it. ...