Bug BabbleBugs, debuggers, stuffNetmodules: Sort of like a lib- November 28, 2005 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 be multi-module. Multi-module means a single .Net assembly is spread across multiple win32 dlls. What I really wanted was a single module assembly written in multiple languages. Netmodules couldn't solve my...http://blogs.msdn.com/stevejs/archive/2005/11/27/497333.aspx XSLT debugging in Visual Studio- November 17, 2005 Visual Studio is a big tool. It's easy to miss some useful features. Hopefully the 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 can see the debugger in action as an xslt transform is being applied to some XML. (Please excuse the nonsense XSLT I use in the example. I haven't had a chance to play around with XSLT for quite some...http://blogs.msdn.com/stevejs/archive/2005/11/16/493805.aspx Edit and Continue on 64 bit Windows- November 15, 2005 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 assembly with a target CPU of x86. This will cause the 32 bit CLR to be used rather than the 64 bit CLR. For a VB Project, right click on the project and go to PropertiesCompileAdvanced Compile...http://blogs.msdn.com/stevejs/archive/2005/11/15/493018.aspx Make DataTips Transparent- November 12, 2005 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 button. Here is an Enhanced DataTip In Visual Studio 2005: Here is the same DataTip with the Crtl key pressed: Update: JimGries pointed out that you can also make the DataTip transparent by pressing the middle mouse button...http://blogs.msdn.com/stevejs/archive/2005/11/12/492115.aspx Post Mortems- November 10, 2005 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. That's the point where the amount of time left means the current suspect can't be the real murderer, and typically there was only one other possible suspect. The more unlikely the suspect, the higher our..http://blogs.msdn.com/stevejs/archive/2005/11/10/491389.aspx Perf Awareness is not Premature- November 6, 2005 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. Premature optimization rightly has a bad rep. Creating complex code where performance doesn't matter is a bad tradeoff. That's not what I'm doing here. I am not trying to code..http://blogs.msdn.com/stevejs/archive/2005/11/06/489644.aspx Checking the result of new is a bug in C++- November 1, 2005 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 code is wrong. The call to new will throw. Yes, your code worked in 5.0, 6.0, (maybe) 7.0 and 7.1, but it doesn't now. You can get the old behavior if you link with...http://blogs.msdn.com/stevejs/archive/2005/11/01/487776.aspx |