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

peterkellner.net, August 10, 2007
Views: 5,202 | 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,729 | Hits 762

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,179 | 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,649 | Hits 419

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,928 | 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,670 | 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,912 | 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,818 | 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,195 | 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,135 | 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,873 | 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,183 | 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,575 | 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,477 | 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,109 | Hits 247

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,616 | 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

ASPAlliance.com - The #1 ASP.NET Community, July 19, 2007
Views: 2,971 | 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,007 | 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,492 | 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,671 | 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,608 | 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,134 | 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,283 | 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: 2,992 | 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,501 | 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,924 | Hits 128

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,418 | 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,311 | Hits 111

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,978 | 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,232 | 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,337 | 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,232 | 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,293 | 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,308 | 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,685 | 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...

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

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

Easy Fix to a Common Angular Module Error

JohnPapa.net, May 27, 2014
Views: 2,797 | Hits 89

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...

DebuggerDisplayAttribute Attribute

Vault of Thoughts, November 18, 2007
Views: 2,227 | 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,430 | 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,390 | 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,699 | 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...

Dodgy Debugging

Glavs Blog, October 11, 2007
Views: 1,961 | 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,942 | 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,374 | 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,637 | 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,197 | 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,979 | Hits 64

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,487 | 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...

VS 2010 Debugger Improvements (BreakPoints, DataTips, Import/Export)

ScottGus Blog, April 21, 2010
Views: 2,193 | Hits 62

This is the twenty-first in a series of blog posts Im doing on the VS 2010 and .NET 4 release.  Todays blog post covers a few of the nice usability improvements coming with the VS 2010 debugge...