Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

Simple VS Addin (updated)

Back during the PDC for Whidbey I wrote a post about Creating a Simple Addin . Recently I was looking to update it and found a horrible bug in it. First, here is the corrected code: public void OnConnection( object application, ext_ConnectMode connectMode,
Posted by SteveJS | 2 Comments
Filed under: , ,

Naming threads in Win32 And .Net

When you are debugging an application with multiple threads it can be handy to have a better name than just the thread id. This is simple to do in managed code. There is a property on the Thread object that you can set. It is also possible to do this
Posted by SteveJS | 7 Comments
Filed under: , ,

FuncEvil, the Clipboard, and Deadlocks

Mike Stall has a great post that, for a debugger dev, is the moral equivalent of sticking a fork in a toaster. The basic problem he addresses is that once you are stopped in the debugger the UI for your application will no longer paint. What if you need
Posted by SteveJS | 3 Comments
Filed under: , ,

Change Debugger behavior with Attributes

Certain metadata attributes modify the stepping, breakpoint, and callstack behavior of the VS managed Debugger. This is useful if you are creating an interpreter, language runtime, or a tool that modifies the code in a managed assembly. There are three
Posted by SteveJS | 0 Comments
Filed under: , ,

Netmodules: Sort of like a lib

I first ran into netmodules before VS 2002 was shipped. The netmodule gave me precisely what I asked for, without actually solving my problem. I wanted to use multiple languages (C#, and C++ /clr) in a single assembly. It turns out a single assembly can
Posted by SteveJS | 1 Comments
Filed under: , ,

XSLT debugging in Visual Studio

Visual Studio is a big tool. It's easy to miss some useful features. Hopefully t he XSLT debugger won't get missed. If you want to learn how to use XSLT debugging take a look at Neetu Rajpal's msdn article Introducing Xml tools in VS 2005 . Below you
Posted by SteveJS | 2 Comments
Filed under: ,

Edit and Continue on 64 bit Windows

Pascal writes about the joy of x64 Windows XP, and some drawbacks. One drawback is no Edit and Continue using the 64 bit CLR. You can, however, use E&C against the 32 bit CLR on a x64 machine. Here's how you do it: You need to compile your managed
Posted by SteveJS | 11 Comments
Filed under:

Make DataTips Transparent

Enhanced datatips are my favorite new debugger feature. However, sometimes you want to see underneath the tip without losing your spot. Fortunately, JimGries thought of that. You can make the DataTip transparent by pressing the ctrl key or middle mouse
Posted by SteveJS | 4 Comments
Filed under:

Post Mortems

I won the guess the murderer contest. Shai and I compete to guess who the real murderer is on Law and Order Criminal Intent. Last night we watched Sunday's two hour show. It's a toss up who wins, but one of us always gets it by two thirds of the way through.
Posted by SteveJS | 0 Comments
Filed under:

Perf Awareness is not Premature

I've found myself adding a timer to each of the unit test frameworks I use so I can see how long my tests take. I am not trying to do anything complex. I just want to be aware of the perf. The same way pass and fail are visible, 1ms vs 90ms is visible.
Posted by SteveJS | 1 Comments
Filed under: ,

Checking the result of new is a bug in C++

At least, it is a bug in VC8. That check won't happen. Reading Larry Osterman's recent posts "What's wrong with this code, part 15" and the answers , reminded me this behavior changed in VC8. If you check the result of new in code compiled with VC8, your
Posted by SteveJS | 3 Comments
Filed under: ,

Tabs vs Spaces

Of course, there is only one answer to whether tabs should be allowed in a source file. The utility of one is just so obvious I'll simply avoid commenting on it. :-) If you must wander from sources written with one convention to those written in another,
Posted by SteveJS | 15 Comments
Filed under: ,

Data Breakpoints

The VS debugger allows two types of breakpoints. There are location breakpoints and data breakpoints. Each has lots of bells and whistles. However, sometimes people confuse a Location bp with a condition, for a data bp. That's unfortunate because a data
Posted by SteveJS | 5 Comments
Filed under:

Stop Mid Func Eval, Nested Break States

A coworker mentioned Func Eval sounds like "Funky-val". Stopping at a breakpoint in the middle of a function evaluation could be considered funky. It is also useful. VS Whidbey allows stopping at a BP or Exception during a function evaluation in C# or
Posted by SteveJS | 3 Comments
Filed under:

More hours in the day

In the summer of '94 I sketched a design for my ideal 'mp3' player. I didn't spec the compression format. If I had, it would have been called a 'bit' player back then. I wanted a walkman replacement. However, the feature I most craved was understandable
Posted by SteveJS | 7 Comments
Filed under:
More Posts Next page »
 
Page view tracker