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

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

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

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

Build Failed With No Errors

K. Scott Allen, July 6, 2006
Views: 7,820 | 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...

The breakpoint will not currently be hit

Guy Barrettes WebLog, October 8, 2008
Views: 7,203 | 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...

Sensible Debugging in IE 8

Rick Strahls WebLog, March 6, 2008
Views: 2,659 | 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...

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

Rick Strahls WebLog, August 26, 2008
Views: 2,949 | 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...

Tips for writing Debugger Visualizers in VS.NET 2005

Frans Boumas blog, February 6, 2006
Views: 3,688 | 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...

Visual Studio Script Debugger and Microsoft Script Debugger Mixup

Rick Strahls WebLog, September 14, 2006
Views: 3,933 | 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,830 | 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...

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

K. Scott Allen, August 17, 2006
Views: 6,231 | 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...

Range Errors Not Just In Software

Steven Smith, October 23, 2008
Views: 2,145 | Hits 262

A common area to test in software are ranges of values and off-by-one errors.  But this problem certainly isn't limited to programmer code.  I just wrapped up a survey by TNS for customer sa...

Is Debug Mode Evil?

Peter Brombergs UnBlog, January 26, 2007
Views: 2,925 | 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 ...

Debugging FireFox Cookies

Rick Strahls WebLog, January 28, 2007
Views: 5,244 | 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...

Object Test Bench

Vault of Thoughts, December 7, 2006
Views: 3,617 | 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...

Change The Display Of A Type In The Debugger

youve been HAACKED, October 4, 2006
Views: 2,530 | 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...

What Exactly Are You Trying To Prove?

youve been HAACKED, November 16, 2007
Views: 2,123 | Hits 248

Frans Bouma wrote an interesting response to my last post, Writing Testable Code Is About Managing Complexity entitled Correctness Provability should be the goal, not Testability. He states in his po...

The Binding Handle is Invalid in VS 2005 Resolved

Colt Kwongs Blog, November 16, 2005
Views: 5,630 | 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 ...

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

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

Detecting ASP.NET Debug mode

Rick Strahls WebLog, January 20, 2007
Views: 6,044 | 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...

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

dasBlonde, July 27, 2006
Views: 4,575 | 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 ...

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

Jeffrey Palermo, August 17, 2006
Views: 2,721 | 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...

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

ISerializable, April 25, 2006
Views: 2,623 | 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...

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

The Visual Basic Team, December 30, 2008
Views: 4,156 | 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...

FIX: VS7 Debugger Error

dotNet, February 24, 2004
Views: 3,322 | 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...

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

Jotekes Blog, July 27, 2006
Views: 3,036 | 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...

FireBug debugging Bug in If blocks

Rick Strahls WebLog, October 8, 2007
Views: 1,509 | Hits 131

On several occasions I've now seen the FireBug debugger doing some really strange things when stepping into certain conditional blocks. For example I was just working on the following code that is a g...

How to diagnose Linq to SQL easily and production-ready

eXtensible mind, August 22, 2008
Views: 1,946 | Hits 129

Here's what we're currently doing: we add an InitializeContext method to all DataContext-derived classes, which is called from all ctors: private void InitializeContext() { #if DEBUG if...

Simpler Debugger with DebuggerTypeProxy

Keyvan Nayyeri, October 4, 2006
Views: 2,434 | 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 ...

Visual Studio 2008 Tip : Multiple startup projects

Cirrus Minor, August 20, 2008
Views: 3,326 | 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...

Thank You!

Roland Weigelt, December 9, 2006
Views: 1,989 | Hits 107

There’s a time for complaining about issues, and there’s a time for telling when things are great. I’m right in the middle of writing custom column and cell types for a DataGrid...

How to programmatically launch Debugger in a remote machine

C# Frequently Asked Questions, March 28, 2011
Views: 2,275 | Hits 103

This blog post explains how to kick off a debugger in a remote machine, programmatically. We are going to use WMI interfaces to achieve this. Use WMI, to start the debuggee process and attach a regist...

Internet Explorer Global Variable Blow ups

Rick Strahls WebLog, March 22, 2009
Views: 2,346 | Hits 94

I ran into an odd behavior/bug with Internet Explorer today that I hadnt noticed before in relation to global variable assignments. Check out the following code that fails for me in IE 8 both in compa...

Debugging Tips with Visual Studio 2010

ScottGus Blog, August 19, 2010
Views: 2,250 | Hits 93

This is the twenty-sixth in a series of blog posts Im doing on the VS 2010 and .NET 4 release. Todays blog post covers some useful debugging tips that you can use with Visual Studio.  My fr...

WPF: The Static Nature of Dependency Properties

the telerik blogs, July 25, 2008
Views: 7,409 | 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 ...

Date Time Visualizer for VS2005

Julia Lerman Blog - Dont Be Iffy..., September 23, 2005
Views: 2,315 | Hits 91

John Mueller demonstrates a nifty debugger visualizer in his article on DevSource: Write Your Own Visualizer for VS Debugging.I have played with visualizers a lot, but have focused ...

Debugger Visualizers not working in ASP.NET Medium Trust

Rick Strahls WebLog, September 24, 2009
Views: 3,713 | 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...

Easy Fix to a Common Angular Module Error, May 27, 2014
Views: 2,875 | 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...

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

The Visual Basic Team, December 9, 2008
Views: 4,495 | 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...

DebuggerDisplayAttribute Attribute

Vault of Thoughts, November 18, 2007
Views: 2,243 | Hits 89

Another small yet useful thing. Usually when we have an object of a class and want it to be more debugger friendly, we override the ToString method. From that method, we return something meaningful, ...

Troubleshooting a Spooler Crash

Brian Desmonds Blog, January 5, 2009
Views: 3,473 | 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,451 | 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...

Two cool debugger tips that I learnt today

The Moth, July 29, 2008
Views: 1,707 | Hits 79

Tip #1 datatips on commentsOne of the coolest debugger features introduced in VS2005 was DataTips (grey editable, navigable tooltips on steroids that also become transparent when you hold down the Ct...

.Net Debugging? Dont give me none of your VS

Simple Talk, October 14, 2009
Views: 1,869 | Hits 79

Visual Studio is fine for most debugging purposes. Just occasionally, it isn't practicable, or there are other quicker ways of doing it with a user-mode debugger. Edward argues that debugging in MSIL...

Dodgy Debugging

Glavs Blog, October 11, 2007
Views: 1,970 | Hits 77

In a previous post, I mentioned an obscure ASP.NET issue that had me scratching my head for a while. In order to track it down, I had to resort some dodgy debugging techniques which I wouldn't call ex...

Investigating .NET Memory Management and Garbage Collection

Simple Talk, March 24, 2010
Views: 1,961 | Hits 76

Investigating a subtle memory leak can be tricky business, but things are made easier by using The .NET framework's tool SOS (Son of Strike) which is a debugger extension for debugging managed code, ...

DebuggerVisualizer pack released!

ASP.NET Announcements, November 27, 2006
Views: 2,386 | Hits 74

StructsViz is a set of DebuggerVisualizers that show a graphical representation of all the .NET data structures in the System.Collection.* namespaces. You can see a few screenshots and read more abou...

Start Debugging in Visual Studio

The Moth, March 16, 2012
Views: 1,675 | Hits 71

Every developer is familiar with hitting F5 and debugging their application, which starts their app with the Visual Studio debugger attached from the start (instead of attaching later). This is one wa...

Using Assert.AreSame

Karl Seguin [MVP], November 4, 2008
Views: 4,221 | 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...

Not all AnonymousMethods are the same

The Moth, September 15, 2008
Views: 1,999 | Hits 65

Whilst debugging code that uses multiple anonymous methods (or lambdas) from a single method combined with multiple Threads, an interesting issue surfaces with the stack frames that Visual Studio 2008...

On error messages

mikes web log, July 7, 2006
Views: 2,498 | 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...