debugging

Attach existing VS.NET 2008 instance that's already debugging as JIT debugger

Is it possible to configure the VS.NET 2008 "Just-In-Time" Debugger dialog to show an existing instance of Visual Studio that's already attached to another process? The scenario I have is an NUnit unit test that runs another process. When I'm debugging the unit test I want to automatically launch the debugger for the child process it ru...

Debugging a program that doesn't start.

How would I go about determining why a VB6 (or 5) application doesn't start? I can't attach a debugger to it because of that. I have IDA Pro Freeware at my disposal, but need some pointers as to where to start with it. I don't have the source for this program, only the .exe. When I say it doesn't start, I double-click the .exe, and n...

How can I use "using" in C# without getting "InvalidOperationException"?

I am trying to replce the follwing code that works fine TcpClient oC = new TcpClient(ip, port); oC = new TcpClient(ip, port); StreamReader messageReader; try { messageReader = new StreamReader(oC.GetStream(), Encoding.ASCII); reply = messageReader.ReadLine(); } with try { using (messageReader = new StreamReader(oC.GetStream...

IPC Troubleshooting

What is the best way to troubleshoot IPC? Are there any tools/tricks to determine problems (without requesting the source code)? I have two, third party components. The IPC server config and client config seems correct. Yet the two components don't want to communicate. One component throwing a null object exception, which I believe is...

Catching exceptions as an expression while debugging Java in Eclipse IDE

An everyday debugging situation for Java developers is that in which an Exception is thrown and then you need to dig into the debugger to find out what threw it. Usually you would try to set up some breakpoints before the exception is thrown and hope that you are able to determine the situation that leads up to that exception. In Eclips...

complete IE failure - jquery

I've been working on this for a few days, and have made some (though very little) progress in getting my scripts to work in IE. FF & Chrome are flawless. Both IE7&8 completely shut-down when running my script. The only error I get is when I first load-up the page, and i get a warning that their is an error in the main jquery.min.js pa...

Xdebug or ZendDebugger & Logging

Do any of the well-known PHP debuggers offer any method of logging stack traversal? Say I wanted to somehow store a log of every entry/exit of every class, class method, and function. Is there any way to do this all on the server side (maybe some sort of plaintext client that could log every step-in/step-out automatically)? Update: It ...

'Start Debugging' takes forever in VisualStudio 2005

I have a large project that has > 1000 files. When I press the green 'Play' button to start debugging, once everything is built, it can take up to 5 minutes for the app to start running. It looks like Visual Studio is loading and unloading various DLLs, but it also just sits there occasionally doing nothing. Running from the command li...

How do I debug an exe running through Windows Scheduler?

I'm using Windows Scheduler to run an exe I have written. How can I jump into a debug session when the scheduler starts my exe? Update 1. I had thought of doing a Thread.Sleep and then Attach to Process. When I tried it, it says Debugger is already attached to process... ...

Slow debugging issue in Visual Studio

Hello everyone, In my Visual Studio, even I just wrote a single line of return in a C# console application, it will take me a minute after pressing F5 to execute the actual code (I mean the time it takes to stop on the single return statement after pressing F5 -- I set a breakpoint on return statement in Main function). I am wondering w...

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() { ...

VS get returned value in C# code ?

When debugging C/C++ (unmanaged?) code in VS, after stepping out of a function, you can see the returned value in the 'autos' window: However, this does not work for C# code: Any suggestion on how to get the return value other than cluttering the code with temporary variables? ...

segmentation fault on Unix - possible stack corruption

hello, i'm looking at a core from a process running in Unix. Usually I can work my around and root into the backtrace to try identify a memory issue. In this case, I'm not sure how to proceed. Firstly the backtrace only gives 3 frames where I would expect alot more. For those frames, all the function parameters presented appears to co...

Javascript: Error 'Object Required'. I can't decipher it. Can you?

Hello again. I am using a javascript called 'Facelift 1.2' in one of my websites and while the script works in Safari 3, 4b and Opera, OmniWeb and Firefox it does not in any IE version. But even in the working browser i get the following error I cannot decipher. Maybe in due time—with more experience in things Javascript—I will be able ...

How do I interpret this JVM fault?

I have a Java app that makes use of some native code, and it's faulting. I want to find out where it's faulting, but I'm not sure how to read the hs_err_pid dump file: Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x256cbc] V [libjvm.so+0x25df69] V [libjvm.so+0x25dbac] V [libjvm.so+0x2...

What causes the System.Web.HttpException with error code 0x80070057 on Page.Flush while debugging in VS2005?

Here is the complete error message: An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code Additional information: The remote host closed the connection. The error code is 0x80070057. and the offending code: char[] buffer = oPage.HTML.HTML.ToCharArray(); Page.Re...

Would you like to continue and run the last successful build?

You're in Visual Studio... you press F5 (Run) and are greeted by this dialog: There were build errors. Would you like to continue and run the last successful build? Wonderful. I'm sure there are cases where running the last successful build is useful, however, I have never purposefully answered yes to this question. Oh sure, I've ...

How much information do pdb files contain? (C# / .NET)

Is is wise to redistribute the pdb files along with a commercial application? Occasionally, I'm using the stack trace to get a more detailed error reporting logs from the deployed applications; can this functionality be achieved without relying to those files? Also, how much hints of the original source code does these files contain? W...

Finding a function in a disassembly.

I'm busy following a tutorial where the author uses DUMPBIN to list exports, and OllyDbg to get the assembly code for an exported function. How would I find the functions code in the complete disassemly, given that the export tables RVA's don't correspond to real addresses in the disassembly. ...

Java appears hung

I've been using the Java Service wrapper in a custom application for quite a while and it's been working fine. Since updating our application to a new version in the last few days the JVM started hanging and then wrapper prints this in the log: JVM appears hung: Timed out waiting for signal from JVM. It then automatically terminates th...