debugging

How do I debug javascript in visual studio when an asp.net application is run under firefox?

How to debug javascript in visual studio when an asp.net application is run under mozilla firefox browser? IE supports by enabling javascript debug option . ...

Why is my debugger so slow?

Since some time, my Delphi debugger became much slower than I was used to before. I noticed this in both Delphi 2007 and 2009, so it seems it's something outside of Delphi itself... What causes this behaviour, and how can I prevent this? ...

Why does Eclipse CDT ignores the breakpoints?

Hello! My problem is that I set some breakpoints in my code and some of them aren't working. In some places it complains about "Unresolved Breakpoint". Does anyone have any clue why this is happening?? I am using gdb, by the way. EDIT: Yes, of course is compiled with debug information. It only happens at some classes or points in the...

Is there a way to "hot swap" JavaScript code within the browser?

Is there any tool that enables you to "hot swap" JavaScript contents while executing a webpage? I am looking for something similar to what HotSpot does for Java, a way to "hot deploy" new JS code without having to reload the whole page. Is there anything like that out there? Clarifying in case people don't understand "hot swap", as i...

How to diagnose IIS fatal communication error problem

I've a a customer using IIS and an application, developed by us, in Asp.NET 1.1. Monday, for 4 times in a row the error “A process serving application pool 'xxxx' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was 'yyyy'. The data field contains the error number.” appeared. Any idea about...

How do I get Srcsrv with SVNindex.cmd to index extern files ?

I have recently made use of the SrcSrv feature in the Debugging Tools For Windows, but have noticed that when I index the pdb with SVNIndex.cmd it does not pick up any of the files that are from an external link. Any suggestions ? ...

what is the difference between using shift-f5 or the red-X on the controlbox for terminating a debug session?

is there a difference in the dispose() functions being called ? ...

How to keep your own debug lines without checking them in?

When working on some code, I add extra debug logging of some kind to make it easier for me to trace the state and values that I care about for this particular fix. But if I would check this in into the source code repository, my colleagues would get angry on me for polluting the Log output and polluting the code. So how do I locally ke...

Need Help: VS 2005 Properties Changing

I am working in Visual Studio 2005. I have multiple splitters on the screen. I have set the splitters IsFixed and I have also set fixed panel sizes. In addition to this I have locked the control. For some reason, when I switch into debug mode the splitter distance value is changing entirely on its own. These changes do not take place wit...

How do you start debugging a Cocoa app with a URL?

I'm debugging a Cocoa application that can act as a handler to a custom URL protocol. The application works fine when I click on a link after the application has launched, but something is causing the app to crash if it has not launched at the time the link is clicked. Is there any way that I can start the app in the debugger and "fool"...

CaptureStackBackTrace on Visual Studio 2005

I've recently heard about the CaptureStackBackTrace function by reading this post. I cannot find it in any of my Visual Studio 2005 header files however, and I'm guessing (from the MSDN URL which mentions VS.85) that this may only be a Visual Studio 2008 thing. Is there a way, perhaps by manually finding the entry point in a system DLL...

Attaching the .net debugger while still providing useful logging on death

I would like to have some kind of catch-all exceptions mechanism in the root of my code, so when an app terminates unexpectedly I can still provide some useful logging. Something along the lines of static void Main () { if (Debugger.IsAttached) RunApp(); else { try { RunApp(); } catch...

How to attach VS2005 to process running on WinCe 5.0

What applications/modules/dlls do I need on the Window CE 5.0 device in order to be able to attach Visual Studio 2005 to process running on the device ? ...

Writing trace information in a windows form app

Hi, I know how to write trace statements that I can view in a webforms environment, but how do I do this in a windows forms app? I am inside of a static method, and I want to display the sql query that it is generating. I don't have access to messagebox.show, what are my options? ...

Decrypting the YSOD, techniques to the mayhem.

How many can relate do this? hehe On a more serious note, what are the first things you look for when you see the yellow screen of death? Half the time the debug trace isn't actually telling you what the problem is (understandable I guess). What techniques do you use to debug the problem? I must admit, I still use response.write mo...

Debugging causing exceptions?

I was getting bad data from an application I was writting using C++ in Visual Studio 2k3 so I decided to debug it. Then I found it was throwing an exception but one I can't track down. Then I placed some try/catch blocks and low and behold, when I don't debug there is no exception. That is, I have code that looks like this: std::vecto...

Help troubleshooting System.BadImageFormatException:

While debugging through a .NET 3.5 SP1 project which is contacting a local web service, I'm receiving the exception System.BadImageFormatException: "Bad Class Token" Of course there aren't much more details about what's causing the exception. I can tell that the method where this occurs, which is in the same class as it's caller, the ...

How does a debugger work?

I keep wondering how does a debugger work? Particulary the one that can be 'attached' to already running executable. I understand that compiler translates code to machine language, but then how does debugger 'know' what it is being attached to? ...

Can I find out the return value before returning while debugging in Eclipse

Is it possible to see the return value of a method after the line has been run and before the instruction pointer returns to the calling function? I am debugging code I can't modify (read: don't want to re-compile a third party library), and sometimes it jumps to code I don't have source to or the return expression has side effects that...

Do you think Debugging (System Troubleshooting) is one of the most important measurable technology-agnostic skills a programmer can have?

There are many skills a programmer could have (understanding the problem, asking good questions, good design skills, etc.). I think System Debugging skill is incredibly valuable. This general skill of debuggin any technical system (from the batteries being dead in your remote control to signal interference from your neighbor's Ham Radio...