debugging

debugging a shell extension remotely in a virtual machine

Hey guys, I'm trying to remotely debug a shell extension on a VM-Ware Vista installation through Vistual Studio 2008 (host system is Vista as well). My problem is that the shell extension gets registered correctly, but is never called. When I copy the extension to my virtual system by hand and run it there, it works fine. Is this mayb...

How to display localhost traffic in Fiddler while debugging an ASP.NET application?

How do I display localhost traffic in Fiddler while debugging an ASP.NET application? ...

Anyone have a good way to debug WPF focus?

I'm going to focus hell right now in my WPF application. Focus is jumping around between elements, and seemingly disappearing only to come up on another element when the tab key is repeatedly pressed. Is there a property I can bind a label on to or something that will simply just tell me what the heck the keyboard focus is latched on to...

Assign file names to eval code in Microsoft Script Editor or Microsoft Script Debugger

I'm debugging dojo-based javascript running in IE6 with Microsoft Script Editor. Everything works fine, but in order to find the dojo files I need, I have to open sometime 100+ 'eval code' files in Microsoft Script Editor/Debugger and manually inspect them for their 'dojo.provide' clause. Is there a way to get Microsoft Script Editor t...

A better error handler code for debugging db related methods in C# ?!

Hi, all. I have the following region I keep snippetting after the try {} blocks. It's purpose is to provide debugging information whenever configured back to the database ... It does debug nicely ( not all it is supposed to debug , but enough to find exactly the error, BUT .. The code smells. Even I can get it. Do you have a better idea...

Installing flash 9 debugger in linux

Hello all. I've been trying for some time to use the ExternalInterface.call method in flash, to no avail (see here: http://stackoverflow.com/questions/757390/actionscript-javascript here: http://stackoverflow.com/questions/818089/using-externalinterface-in-flash and here: http://stackoverflow.com/questions/825316/flash-trace-output-in-fi...

Debugging swig extensions for Python

Is there any other way to debug swig extensions except for doing gdb python stuff.py ? I have wrapped the legacy library libkdtree++ and followed all the swig related memory managemant points (borrowed ref vs. own ref, etc.). But still, I am not sure whether my binding is not eating up memory. It would be helpful to be able to ju...

What are Microsoft's public symbol servers useful for?

Hi, Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC. On my laptop I just tried a different approach, namely bringing up the "Modules" window in VS while I am debugging and right-clicking System.Web.Mvc, then select "Load Symbols From" > "Microsoft Symbol Servers". VS seemed to actually load someth...

Determining the source of a thread

I've been experiencing a high degree of flicker and UI lag in a small application I've developed to test a component that I've written for one of our applications. Because the flicker and lag was taking place during idle time (when there should--seriously--be nothing going on), I decided to do some investigating. I noticed a few threads ...

How do I register as a real-time ETW consumer for NT Kernel Events?

I have been able to use logman with some success to dump some kernel traces. However, I'd like to be able to programatically enable real-time consumption of kernel events (mainly thread/process creation/deletion and file I/O) in my application. What is the best approach to this task? ...

How to add debug assemblies to my Silverlight 2 application?

So I know now that the debug assemblies have been intentionally left out of the Silverlight runtime to save space. For that reason I get good detailed error messages on my local machine that has the Silverlight SDK on it, but I don't on a computer with the runtime only. I get the ubiquitous, "Debugging resource strings are unavailable....

Visual C++ Debug window displaying of CR/LF in Visual Studio 2008

For some time now when I am debugging Visual C++ applications and viewing any CString or char* (or any other ascii char based type) variable in the Local, Auto, or Watch debug windows, the CR/LF characters in my variables are not displayed at all. In other words, if I have a string variable set to "This is a line\r\nThis is another line...

How to get a call stack for an intermittently crashing devenv.com?

I have a nightly build DOS batch script that invokes devenv.exe to build a solution file. Intermittently I observe a devenv.com crash. I get a DW20.exe "share your pain" dialog. 1) If Debug button is pressed, I am not presented with a usual "Choose your debugger" window. Rather, it does nothing. 2) If I launch a Visual Studio and ...

Debugging commands (step over/into) cause unhandled exceptions

I'm using Visual Studio 2008 on a 64-bit version of Vista. After my program stops on one of my breakpoints, I can't step over or into the current line without either an Illegal Instruction exception or an Access Violation exception being thrown by my application. If I right-click on the next line and choose "Run to here" (equivalent to...

What's the difference between Start Debugging and Start Without Debugging in Silverlight Application?

I have a problem wherein I get an AmbiguousMatchException in some of the samples from the Silverlight.FX samples. The TaskList.aspx sample for example demonstrates this problem when I run Start Debugging the exception gets hit on line 202 in ListView.cs FrameworkElement uiItem = itemTemplate.LoadContent() as FrameworkElement; Except...

Is there a shortcut in VS for "next statement in current thread" ?

When debugging multi threaded .NET apps in VS (2008) I frequently want to step through code. When I press F10 quite often I find VS jumping to a statement in another thread. Its really confusing and always throws me off. I can work around it by chucking in a million breakpoints. Is there a cleaner way of asking VS debugger to go to t...

how to get a stack trace from dump file programatically on Windows.

I want to retrieve stack trace from a user dump file programmatically . There is this user dump at known location and i want to extract just the stack trace out of it and put that in a plain text file - is there a way to do that ? NOTE : I can do it manually - Open windbg and type "k" command - but as i mentioned earlier i want to do...

What would be a good browser-independent JavaScript programming environment?

My team's current project involves re-writing retrieval libraries in JavaScript. We are basically looking for a setup which enables us to apply test-driven development methods. So far we plan to use Vim to write the code, no fancy IDE. For generating output we would use Spidermonkey's shell environment. JSLint could serve as a moderate ...

Unable to start debugging on the Web Server. Visual Studio 2008

Hi, I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS. "Unable to start debugging on the web server. The object identifier does not represent a valid object". IIS and Visual Studio are on the same box. I've tried adding Windows Authentication but no luck (my...

How to get VBScript and ASP Symbol Files

Many Windows system files are available from Microsoft through a download page or http path. My WinDbg can't find the symbol files for VBScript.dll and ASP.dll and I can't seem to find them on the Internet. The VBScript.dll on the server is 5.6.0.8835 and the ASP.dll is 6.0.3790.4195. Both have younger file dates than their symbol fil...