debugging

Tool to find if dll (or) exe and PDB file match

Hello All, Is there any tool to check if a DLL and PDB match? I need to debug a process and I can't afford to use the wrong PDB and start the process all over again. ...

Getting timestamp of module from crash minidump

Is there a way to get the timestamp of any module from crash dump. ...

JUnit won't stop at breakpoints in Eclipse (using JDK 1.6.0.20)

Hi, my breakpoints in Eclipse won't stop the execution of a JUnit test. It doesn't matter where I set the breakpoint in the JUnit method, it simply won't stop the code from flowing. Placing it in a class called in the JUnit test won't work either. I am using the JDK in the version of 1.6.0.20, so I guess I'm not affected by the bug in ...

WCF Callback Contract Fiddler Debugging

I'm trying to debug a WCF self-hosted service utilizing callbacks. Every 1/2 I make a callback to a SL3 app to display the latest changes (yes, there are tons of changes every 1/2 second). There are 3 services, one has new data every 1/2 second, one has new data every second, and another has new data every hour. I've set all of my tim...

Getting timestamp of module from crash minidump

Is there a way to get the timestamp of any module from crash dump. ...

Trying to understand crash log output

I'm trying to understand debug output from a crash log. I have the following line from the crashlog: 22 FG 0x00022b94 0x1000 + 138132 I understand how to use atos on 0x00022b94 to get the source code location. What I would like to know is why the crash log helpfully splits that number into 0x1000 + 138132?...

Linux C debugging library to detect memory corruptions

When working sometimes ago on an embedded system with a simple MMU, I used to program dynamically this MMU to detect memory corruptions. For instance, at some moment at runtime, the foo variable was overwritten with some unexpected data (probably by a dangling pointer or whatever). So I added the additional debugging code : at init, t...

When debugging in VS 2008 why does the debugger land on a second return statement?

When debugging the following console program: class Program { static void Main(string[] args) { Console.WriteLine(DoIt(false)); Console.WriteLine(DoIt(true)); } private static Boolean DoIt(Boolean abort) { try { throw new InvalidOperationException(); } catch(Exception ex)...

jdb conditional breakpoint

I remote debug my application using JDB, just JDB, no IDEs, is there a way in jdb to set a conditional breakpoint? eg: stop at MyClass:80 when mystr.equals("abc") ...

[WPF] ExceptionValidationRule doesn't react to exceptions...

Hi, I have an ExceptionValidationRule on my TextBox: <Window.Resources> <Style x:Key="textStyleTextBox" TargetType="TextBox"> <Style.Triggers> <Trigger Property="Validation.HasError" Value="true"> <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Err...

What are the top javascript pitfalls?

I'm planing on giving an introduction talk on JavaScript and in the preparation process I wondered what the top pitfalls are that rookies fall into. I know I've had a few gotchas before I fully understood closure, but much of the strange behavior in JavaScript is not something I think about any more... So, which pitfalls should you def...

Xcode's colored console output

Is possible to format/color the output in the Xcode console? I know that you can do that while debugging CoreData on Mac by setting: com.apple.CoreData.SQLDebug 3 and com.apple.CoreData.SyntaxColoredLogging YES What with our own logs, can we color/format them too somehow? ...

C++ LPTSTR to int (but memory overwrite problem using atoi)

I have the following code, m_edit is a MFC CEdit (I know I would never use MFC but project demanded it). It's a simple loop, that gets the text from a text edit, converts it to integer after getting the first line, then stores it in m_y vector. LPTSTR szTemp; vector<int> m_y; for(int i = 0; i < m_edit->GetLineCount(); i++){ szTemp ...

How can I debug a session

I have been asked to work of a very large web application and deploy it. The problem that I'm facing here is that when I deploy the application and more that 1 user logs into the system, the sessions seem to cross over i.e: Person A logs in and works on the site, all good. When person B logs in, person A will then be logged in as perso...

Can we execute methods / code in XCcode just like in Visual Studio?

Visual Studio is one of the best developer IDE of all times, and now was improved with multithreading debugging and much more. My question is regarding Xcode and the ability to execute code just like we do in Visual Studio. Let's assume an object in a view and I want to run, let's say: [pickerView setHidden:YES]; in a breakpoint jus...

How do I view different representations of integers in the eclipse watch window?

I would like to view binary reprsentations of integers in my watch window in eclipse when debugging (or hex). How do I do this? ...

Debugging Internet Explorer crashes

I am not interested in some program that I have to pay for, but I really need a way to debug my website in Internet Explorer. The url is http://www.tombarrasso.com/final/ The issue with IE's built in debugger is that my webpage crashes IE if you open three scrollers and click the right arrow. In Safari and Firefox all is well, not terr...

what "Debug Assertion Failed" mean and how to fix it, c++?

hi, why this program gives me a "Debug Assertion Failed" Error Message while running #include "stdafx.h" #include "iostream" #include "fstream" #include "string" using namespace std; int conv_ch(char b) { int f; f=b; b=b+0; switch(b) { case 48: f=0; break; case 49: f=1; break;...

Console output window in DLL

Hello, I am trying to redirect the output from my DLL to an external console window for easy debugging. I have been told about AllocConsole but I am not able to reproduce it, i.e. the console window does not appear. My current environment is Visual Studio 2005. I tried the following example which is gotten off the Internet, AllocCon...

How to identify deadlock conditions in a third-party application?

I am using a third-party application to handle batch CD audio extraction via multiple FireWire attached devices, but the application frequently (though non-deterministically) hangs during the extraction. I suspect that the multithreaded application is deadlocking over some shared resource. The developer, however, suspects the problem lie...