debugging

How to trace COM/ActiveX dependencies?

Is there anything "out there", similar to Dependency Walker, which walks and reports the dependencies of an ActiveX/COM object? ...

Are there any systems for logging or keeping track of which type of bugs you encounter as you develop?

I'm not looking for bug tracking, per se. But more like a build tool: as a developer, it would be awesome if every time I compiled or tried to run code, I could redirect debugging output and record the bugs I most commonly introduce, how long they take to resolve, etc. Is there anything like this out there? ...

Interview question about debugging, multithreading

Hi I had telephone interview question yesterday. The interviewer asked me if I had faced any challenging debugging issue? I told him I once faced a problem debugging someone else's code and it took me 3-4 days to solve that. I used Windbg, symbols and a crash dump to solve the problem. Now is this enough to tell? What is interviewer ex...

How could I create a custom windows message?

Our project is running on Windows CE 6.0 and is written in C++ . We have some problems with the code , and we are unable to debug . We also found out that if in our application we create threads and try to printf from them , the output won't appear . The only output that will appear is the one from the main thread . I would like to do th...

Problem debugging .NET code with MS's Symbol Server

Hi folks, when i debug my ASP.NET web site code using the Microsoft debug symbol's for .NET .. i keep getting this silly 'result' for most of the variables when i'm debugging .NET framework code (which of course is provided by the Microsoft Symbol Server, which i told VS2008 to grab the info, from) Cannot obtain value of local or argum...

How to run another process at debug mode?

I am writing a windows service. This service runs another process I've developed through Process class methods, but I want to run this process on debug mode also, using breakpoints, for instance. How can I do this? ...

Controlling Eclipse CDT debugger output?

When using CDT I would like to have std::string show up in the 'variable' debug window with the string it contains. For instance if it is currently holding the word "history" I would like to see history in the debugger window labeled "variables". I think that there is a general way to have it drill down into objects but I can't put my ...

How to change the default browser to debug in Visual Studio 2008?

When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008? NB. I have looked for the 'Browse with' option and not found it. http://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of-ie NB2. If you are already debugging you dont have the 'Browse with...

How to debug code that uses boost w/o losing sanity?

Boost is a great set of libraries and it really boosts productivity. But debugging code that uses it is a total nightmare. Sure, stepping through twenty thousand header files can be a valuable intellectual exercise, but what if you need to do it over and over again? Is there a developer-friendly way of just skipping the boost portion an...

How to publish Asp.Net WebService with debug information?

Starting with asp.net 2.0 the debug=true in the compilation section of the web.config file is deciding if the website/webservice will be compiled with debug information or not. But the compilation output is a lot of "gibberish" under the ASP.Net Temporary files. Only wiht publish i can get a clean output to be properly hosted under the W...

Debugging with command-line parameters in Visual Studio.

I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging? ...

How to step through foreach loop tasks in SSIS

In SSIS, how do I step through a foreach loop in debug to see each step within it individually? I've added breakpoints, but they don't seem to break on them in debug? Thanks! ...

How do I setup / configure ELMAH on GoDaddy ASP.NET hosting

FYI: ELMAH is the Exception logging framework that is mentioned on Coding Horror here. How do I setup / configure ELMAH on GoDaddy ASP.NET hosting? I seem to get 404 errors when trying to access elmah.axd. I have followed all of the instructions here to modify my web.config and bin deploy the Elmah assembly. I was using the BETA 2 bi...

What should go in a robust error message for debugging?

In addition to informing the user, we want to collect information for our debugging purposes. Our system is a niche system for only about 1400 customers, and therefore we are not as well-financed as we would hope, so bugs are more common than we would like. We currently have a window that shows the first line of the error message in la...

What is the best way to debug my Python code?

I'm getting quite a few errors in my code. Consequently, I would like to be able to minimize them at the outset or see as many errors as possible before code execution. Is this possible and if so, how can I do this? ...

How to find slow-down in Javascript in IE6

Something's slowing down my Javascript code in IE6 to where there's a noticeable lag on hover. It's fine in FF, so using firebug isn't that helpful. What tools are out there to help debug this in IE? ...

How can I debug JS code in CSSEdit??

Yeah, sounds silly but I'm a designers and the site I'm working on is not working in CSSEdit. Which is bad for me, very bad. The site has a massive JS/Ajax client and works in all browsers, IE, Firefox and Safari that uses the same browser engine as CSSEdit! Since MacRabbit has no customer service (they don't really answer email) this i...

What are your best debugging hints?

What are the expert debugging hints for your favourite language, you think everyone should use? As an example, I'll provide my C++ debugging hints, that between them help me shake out most of the bugs I come across, in this often hard-to-debug language. C++ Increase the warning level of your compiler to maximum, then stop those warni...

How to attach to process using VC6 on win 2003?

The 'attach to process' dialogue box on VC6 running on win 2003 (I believe vista as well) has no processes to attach to in it... I've tried logging on as an administrator and running as an administrator but no luck. Any other ideas? ...

C++ Visual Studio Runtime Error

Can anyone explain to me what this means? "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention." ...