News in the Category: Debugger Subscribe to the rss of this category.

Total posts: 148 | Sort by Views | Sort by Hits

Build Failed With No Errors

K. Scott Allen, July 6, 2006
Views: 7,789 | Hits 763

MSBuild does a good job of reporting build errors, but MSBuild can only report errors that the underlying Tasks report. Custom tasks add a lot of variation to quality of the error messages. Case in po...

WPF: The Static Nature of Dependency Properties

the telerik blogs, July 25, 2008
Views: 7,367 | Hits 93

With dependency properties being so heavily used across the WPF platform, there is a good chance that sooner or later you will get bitten by this issue my colleague Hristo Deshev and I were debugging ...

The breakpoint will not currently be hit

Guy Barrettes WebLog, October 8, 2008
Views: 7,194 | Hits 632

I was hit with the dreadful "The breakpoint will not currently be hit" problem this week.  Searching the Web, looks like it is a common problem both with VS 2005 and 2008 however, it was the fi...

Powershell: Attach Debugger To ASP.NET Worker Process By Name

K. Scott Allen, August 17, 2006
Views: 6,215 | Hits 301

For those who don't like the "Attach To Process" dialog box, just pass the application pool name to this Powershell function: function debug-wp([string]$name){  if([String]::IsNullOrEmpt...

Detecting ASP.NET Debug mode

Rick Strahls WebLog, January 20, 2007
Views: 6,035 | Hits 233

Ah the beauty of a big framework <s>. I was doing some work on an internal GZip compression handler and one thing I needed to know is whether the application is running in Debug mode. Its easy t...

The Binding Handle is Invalid in VS 2005 Resolved

Colt Kwongs Blog, November 16, 2005
Views: 5,626 | Hits 239

I tried to run one of my WinForm 2.0 solution in my home machine tonight, but a confusing error message displayed when I pressed the F5 button: "Unable to attach debugger. The binding handle is ...

Debugging Dependency Properties in WPF: Part 3

Clarity Blogs: ASP.NET, January 26, 2009
Views: 5,523 | Hits 62

In my last couple posts, I've highlighted a way to inject debugging into dependency properties updated via data binding. It seems to work fine, but it's not clear how to apply it in certain sc...

Debugging Dependency Properties in WPF with Property Changed Callbacks (or: How I Learned to Stop Worrying and Love printf Debugging)

Clarity Blogs: ASP.NET, January 18, 2009
Views: 5,308 | Hits 27

WPF is a great technology. It's changed the way we write rich desktop apps for Windows. But after using it for an appreciable length of time (eight or nine months), I've come to two conclusion...

Always Set Stop On Exception While Doing Debugging in Visual Studio 2005 or 2008, August 10, 2007
Views: 5,229 | Hits 904

This article discusses a best practices method for automatically having the debugger stop on unhandled exceptions in visual studio 2005 or 2008...

Debugging FireFox Cookies

Rick Strahls WebLog, January 28, 2007
Views: 5,214 | Hits 257

Heres a fun one for FireFox regarding cookies. I was running through some test scenarios of my West Wind Web Store and while running in FireFox I noticed that I was unable to log on to my store profil...

Active and Current (Stack Frame and Thread)

The Moth, September 22, 2008
Views: 5,197 | Hits 42

Each thread has a call stack (a list of stack frames, each representing a method call and the relevant state). When you break in the debugger, you can see it in the Call Stack window for the current t...

Writing Windows Debugger - Part 2

The Code Project Latest Articles, December 26, 2010
Views: 4,770 | Hits 32

Let's enhance our Debugger!...

Debug proxies for custom collections to aide debugging in Visual Studio

Granville Barnett, September 6, 2007
Views: 4,723 | Hits 44

I stumbled across this while working on a small project (Data Structures and Algorithms (DSA)).  Creating a proxy for a type, or whatever really - in my case a collection is really simple and pro...

SvcTraceViewer.exe - Learn It, Know it, Love It

dasBlonde, July 27, 2006
Views: 4,550 | Hits 229

There's a nice little diagnostic tool that ships with the SDK for .NET 3.0 - svctraceviewer.exe. You WILL need this tool. It is a great way to inspect messages when things are going ...

Did you know? You can unwind the call stack from exceptions (Bill Horst)

The Visual Basic Team, December 9, 2008
Views: 4,485 | Hits 89

The ability to unwind the call stack from exceptions is one of the debugger features that was newly introduced in Visual Basic.NET 2005. When the debugger hits a first-chance exception, you can unwind...

Beginner Guide to Page and Script Debugging with Chrome

The Code Project Latest Articles, October 24, 2011
Views: 4,316 | Hits 51

A beginner introduction to the features of the Chrome Debugger....

Using Assert.AreSame

Karl Seguin [MVP], November 4, 2008
Views: 4,212 | Hits 66

Just as an aside, Part 2 of my jQuery article is up. I think this is something most people know, but wanted to throw it out there just in case. There are subtleties that should be understood when usi...

Visual Studio 2013 'Could not evaluate Expression' Debugger Abnormality

Rick Strahls WebLog, November 21, 2013
Views: 4,148 | Hits 60

Last week I ran into a really strange problem with an older WebForms application on Visual Studio 2013.  I was trying to debug my application on a breakpoint and when I hit the break point, none ...

System.Diagnostics.Process: avoid deadlocks in RedirectStandardInput/Output (Lucian Wischik)

The Visual Basic Team, December 30, 2008
Views: 4,147 | Hits 181

It's common that you want to launch an external process but supply input and capture the output. Here's one attempt:  ' BAD CODE Using p As New System.Diagnostics.Process  &nb...

MPI Project Template for VS2010

The Moth, November 6, 2009
Views: 4,139 | Hits 60

If you are developing MS MPI applications with Visual Studio 2010, you are probably tired of following some tedious steps for every new C++ project that you create, similar to the following:1. In Solu...

Visual Studio Script Debugger and Microsoft Script Debugger Mixup

Rick Strahls WebLog, September 14, 2006
Views: 3,922 | Hits 304

Over the last couple of days I’ve been working on client side stuff and have been experimenting with a few different tools for editing and debugging JavaScript. Somewhere in there I installed th...

Tracing with Log4Net and the Context Singleton Design Pattern

The Code Project Latest Articles, August 12, 2006
Views: 3,826 | Hits 302

This article describes techniques than enable ASP.Net trace style performance information to be outputted to any appender using log4net. In building this utility class, we also delve into a design pat...

Debugger Visualizers not working in ASP.NET Medium Trust

Rick Strahls WebLog, September 24, 2009
Views: 3,700 | Hits 90

So imagine you are running your ASP.NET applications in medium trust and you want to access a debugger visualizer like this: by clicking on the little search icon in the debugger tooltip, you run...

Tips for writing Debugger Visualizers in VS.NET 2005

Frans Boumas blog, February 6, 2006
Views: 3,683 | Hits 305

VS.NET 2005 comes with a new feature, called Debugger Visualizers. A debugger visualizer is a small piece of code which visualizes the object currently hovered by the mouse in a debug session, of cou...

Object Test Bench

Vault of Thoughts, December 7, 2006
Views: 3,594 | Hits 251

In my recent article on Immediate Window, I have showed how you can use it to debug your application, but also how to run arbitrary code. Working with Immediate Window has one major...

NHook - A .NET debugger API

The Code Project Latest Articles, November 30, 2012
Views: 3,552 | Hits 57

Debugger API, explore and modify running program easily...

VS Debugging - Why did VS stop breaking on Exceptions?

Julia Lerman Blog - Dont Be Iffy..., July 3, 2009
Views: 3,498 | Hits 49

I can't believe I put up with this problem for so long. It was an easy solution, just not an obvious one. Read more...  ...

Troubleshooting a Spooler Crash

Brian Desmonds Blog, January 5, 2009
Views: 3,458 | Hits 86

I ran into an interesting issue this evening where the Spooler service on a customer's print server was crashing constantly immediately after logging an event about unpublishing a specific printer. Si...

Javascript debuggers

E-Surfers Weblog, August 1, 2006
Views: 3,427 | Hits 82

Along with the development of AJAX, it is necessary to get a handy javascript debugger. The following Javascript debuggers can make our life easier. 1. Venkman JavaScript Debugger - for Firefox It pro...

Bug Finder, a real Win32 extensible passive debugger

The Code Project Latest Articles, June 7, 2013
Views: 3,409 | Hits 27

Win32 extensible passive debugger...

NHook - A .NET debugger API for x86

The Code Project Latest Articles, December 2, 2012
Views: 3,345 | Hits 35

Debugger API, explore and modify running program easily...

Visual Studio 2008 Tip : Multiple startup projects

Cirrus Minor, August 20, 2008
Views: 3,320 | Hits 112

I was demonstrating a POC I wrote to one of my colleagues and I showed him one of the integration demo where I have a two console application - a producer and a consumer who communicate by WCF. He w...

FIX: VS7 Debugger Error

dotNet, February 24, 2004
Views: 3,301 | Hits 167

I thought I'd post a solution to a debug issue I had today. I've had it before, and now I'll be able to google my blog for the solution. When trying to debug a WinForms app, VS reports “The debu...

Review: New Developer Tools in Internet Explorer 11

Jason N. Gaylords Blog, November 8, 2013
Views: 3,038 | Hits 24

Windows 8.1 has been out for a few weeks now. Along with Windows 8.1, Internet Explorer 11 was released. IE11 offers the best web standard support of any Internet Explorer browser. This means that the...

How to develop and debug ASP.NET custom controls in Visual Web Developer Express

Jotekes Blog, July 27, 2006
Views: 3,014 | Hits 147

As usual, I am always late commenting other people's posts but Mikhail Arkhipov made recently a good post about developing custom controls with Visual Web Developer Express so I thought to mentio...

Why You Need to Use System.Diagnostics.Debug More Than You Do - The #1 ASP.NET Community, July 19, 2007
Views: 2,990 | Hits 238

This article provides an overview of seven methods of System.Diagnostics.Debug which can improve the maintainability of your code....

Accessing a SafeArray Result from a COM Call in C#?

Rick Strahls WebLog, August 26, 2008
Views: 2,939 | Hits 344

It's just not my day I suppose. Maybe not my week is more like it really. Nothing wants to go right. Anyway, here's an interesting problem that I've never seen before. I'm calling a COM object from m...

Is Debug Mode Evil?

Peter Brombergs UnBlog, January 26, 2007
Views: 2,896 | Hits 261

One of the difficulties in working with .NET, especially ASP.NET, is being able to determine whether an assembly has been compiled in Debug Mode or Release Mode, and especially whether an application ...

Easy Fix to a Common Angular Module Error, May 27, 2014
Views: 2,842 | Hits 90

I love running my code right after making some new changes, so I can see them light up in the browser. But I don’t love when error messages are not straight forward. At least not to me. Recently...

If it takes forever to start your app with the debugger, check for thrown exceptions - level 300

Jeffrey Palermo, August 17, 2006
Views: 2,695 | Hits 208

Overview of ExceptionsThere are quite of a few things that are just laws of Object-Oriented development, and one of those is that exceptions should be avoided.  If you can prevent an exception&nb...

Sensible Debugging in IE 8

Rick Strahls WebLog, March 6, 2008
Views: 2,658 | Hits 420

One thing that caught my attention in the IE 8 notes and that eventually made me download and install it is that it will feature the Developer Toolbar which has been an add-in for previous IE versions...

Debugger Visualizer for MethodInfo, DynamicMethod, and MethodBase available for download

ISerializable, April 25, 2006
Views: 2,617 | Hits 195

this nice DynamicMethod visualizer posted as a code sample. Download Just the binaries (38k) Download Binaries and source (358k)   Sample shots: Get the IL byte stream from an...

Tell the Debugger to Ignore Silverlight Validation Exceptions, September 17, 2009
Views: 2,586 | Hits 56

I recently wrote an article that demonstrates how to use the DataForm and validate data entry in Silverlight using the DataAnnotations. One of the pet peeves I have with the validation is that it thro...

DebuggerTypeProxy Proxy Class is Compiled into Release Build

Don Kielys Technical Blatherings, November 16, 2007
Views: 2,550 | Hits 51

I recently did a session about debugging ASP.NET applications at the Victoria .NET Developers Association in Victorial, B.C. It was a fun meeting, and as an Alaskan from Fairbanks I always feel a spec...

Url Routing Debugger

youve been HAACKED, March 14, 2008
Views: 2,521 | Hits 51

In Scott Hanselmans talk at Mix, he demonstrated a simple little route tester I quickly put together. This utility displays the route data pulled from the request of the current request in the add...

Change The Display Of A Type In The Debugger

youve been HAACKED, October 4, 2006
Views: 2,505 | Hits 248

Keyvan Nayyeri has a great tip for how to control the display of atypein the various debuggerwindows using a DebuggerTypeProxyattribute. His post includes screenshots with this in use. This is an attr...

On error messages

mikes web log, July 7, 2006
Views: 2,494 | Hits 63

The ever-interesting Eric Lippert has a thoughtful post on how to create good error messages. His particular focus is on the error messages generated by a compiler, but there's very little in there, s...

John Robbins' New .NET Debugging Book is Out!

Don Kielys Technical Blatherings, December 16, 2006
Views: 2,482 | Hits 46

Well, it's about time! John Robbins of Wintellect is the debugging alpha geek, and the new edition of his seminal Windows debugging book is finally out: Debugging Microsoft .NET 2.0 Applications. This...

Simpler Debugger with DebuggerTypeProxy

Keyvan Nayyeri, October 4, 2006
Views: 2,428 | Hits 125

By default Visual Studio nests object properties in Watch Window and shows them in a hierarchy manner.  For more complex objects you need to traverse through your properties to find whatever you ...