If broken it is, fix it you should

Using the powers of the debugger to solve the problems of the world - and a bag of chips    by Tess Ferrandez, ASP.NET Escalation Engineer (Microsoft)

Posts
  • If broken it is, fix it you should

    Silverlight Game – Part 5 – Storing Highscores in Isolated Storage

    • 10 Comments
    This is part five in a series of 5 posts showing how I built a simple game in Silverlight, you can follow along (reading the posts in order) to build your own Traffic Jam game. I would recommend that you also go through ScottGu’s silverlight tutorials as well as the other tutorials on www.silverlight.net In parts one through four we created a traffic jam game called Seattle Streets. The object of the game was to move cars around and get the red car to reach the exit in as few moves as possible...
  • If broken it is, fix it you should

    Silverlight Game – Part 1 – Creating the main layout

    • 5 Comments
    This is part one in a series of 5 posts showing how I built a simple game in Silverlight, you can follow along (reading the posts in order) to build your own Traffic Jam game. I would recommend that you also go through ScottGu’s silverlight tutorials as well as the other tutorials on www.silverlight.net 1. Create a new Silverlight Application using VS 2008 and call it SeattleStreets When you click ok you will be asked to create an asp.net application or automatically generate a test page...
  • If broken it is, fix it you should

    Silverlight Game – Part 2 – Creating a Car UserControl

    • 3 Comments
    This is part two in a series of 5 posts showing how I built a simple game in Silverlight, you can follow along (reading the posts in order) to build your own Traffic Jam game. I would recommend that you also go through ScottGu’s silverlight tutorials as well as the other tutorials on www.silverlight.net In Part 1 we created the layout for the page/playing board, in this post we will create a Car UserControl to place on the board. The car we are creating will look something like this....
  • If broken it is, fix it you should

    Silverlight 2.0 Walkthrough – Creating a “Traffic Jam” game

    • 12 Comments
    This series of posts are not really in-line with my normal debugging posts, but I just created a simple Traffic Jam game in Silverlight and thought I’d make it into a “lab series” that you can go through if you are getting started with Silverlight. The game is called Seattle Streets and it based on the popular board game Rush Hour® where you help a little red car move to the Exit square by moving the other cars out of its way in as few moves as possible. The project for the finished game is attached...
  • If broken it is, fix it you should

    .NET Memory Leak reader email: Are you really “leaking” .net memory

    • 6 Comments
    I get several emails every week through the blog asking for help on various issues.  Unfortunately due to time constraints I can’t really look at them all on an individual bases but I thought this particular request might be interesting to share. The problem description was “One of our w3wp.exe’s just keep on growing (slowly), and never releasing memory back to the pot.  The main offender appears to be System.String and System.Object[]”  and the email then had some !dumpheap –stat...
  • If broken it is, fix it you should

    .NET Memory Leak: To dispose or not to dispose, that’s the 1 GB question

    • 33 Comments
    I was looking at a memory dump recently for an issue where the process would grow to over 1 GB and return OutOfMemory Exceptions. Debugging the issue: A full user dump of the w3wp.exe process was taken with debug diag 1.1 when memory was really high. If you are reading this and have no clue what debug diag is, how to get dumps with it, or use leak tracking, here is the download and the usage instructions . The dump itself was 1.34 GB which is basically the memory we have committed (used) so it was...
  • If broken it is, fix it you should

    10 years 10 lbs of M&Ms

    • 40 Comments
    This week I turned 10 in Microsoft years which according to MS tradition means that you need to bring in 10 lbs of M&Ms to the office to treat your co-workers with as they stop by and reminisce about the past 10 years :)  We don’t really have M&Ms in the stores in Sweden so I had to substitute for my favorite Swedish candy instead. 10 years is quite some time, but it feels even longer in our business when you think about how much happens with technology in 10 years. When I first started...
  • If broken it is, fix it you should

    Troubleshooting .Net SQL Connectivity issues: What data should you gather?

    • 3 Comments
    Spike in our data access support team has a really good blog talking about data access related issues in .net. Recently he wrote a really good post about what you should gather to troubleshoot a connectivity issue effectively such as Connection strings SQL Server logs The exact error message (with stack trace and other details) Netmon traces Memory dumps File version info along with what you should look for in each… I would recommend both that post and the blog as a whole to anyone dealing with data...
  • If broken it is, fix it you should

    .NET Hang: Analyzing Debug Diag output

    • 5 Comments
    Earlier this week I got an email from a reader who had a hang in an application and sent in some Debug Diag logs. In order for me to dig in deeper I would need to open a support case as I would have to ask follow up questions and look at the dumps etc. However, I wanted to show some interesting details from his report to show you how to move forward if you get an issue like that. Analyzing the debug diag output At the top of the report generated by debug diag for the dump, you will see an analysis...
  • If broken it is, fix it you should

    TechDays Sweden March 17th-18th 2009

    • 1 Comments
    If you live in Sweden and haven’t signed up for TechDays 2009 yet, go ahead and check it out.  There are a lot of good speakers scheduled for the conference. What is even more exciting is that my support buddies will have their own track running in parallel with the main tracks where there will be a number of sessions about troubleshooting and troubleshooting related topics. I will be running a presentation (with Mikael Deurell ) about my favourite topic: debugging .net applications, what else...
  • If broken it is, fix it you should

    WCF 101 – Creating and consuming a basic WCF Service hosted in IIS

    • 10 Comments
    In my last post I wrote about a WCF hang I caused because of a newbie mistake. I also wrote that I would post about how to create a simple WCF service. This tutorial is mostly for myself so that I’ll remember what I did, but hopefully it might benefit some other people too… The WCF service I will create here (MyGameService) is one that will keep track of all the games for my game site. Creating a WCF Service and hosting it in IIS 1. In Visual Studio 2008, choose File / New / Web Site… /...
  • If broken it is, fix it you should

    .NET Hang: My application hangs after I called my WCF service a couple of times

    • 18 Comments
    I know it is a little late, but Happy New Year to all of you. My holiday break was great, and I wish I would have had some more time to blog, but instead I got an XBOX 360 and a Guitar Hero World Tour game so the blog had to take the back seat for a while… My whole family and even my mom are now hooked on GH so the evenings at my house have turned into family jam sessions:) Apart from playing GH and hanging out with family and friends, I spent most of my break writing Silverlight apps and games...
  • If broken it is, fix it you should

    Video of my TechEd presentation of Common Issues in ASP.NET and how to debug them with Windbg

    • 9 Comments
    My TechEd presentation “Common Issues in ASP.NET and how to debug them with Windbg” is now up on channel 9, so if you want to watch it, here you go http://channel9.msdn.com/posts/MSDNSweden/Vanliga-fel-som-grs-med-ASPNET-och-hur-du-hittar-dem-med-WinDbg/ Have fun, Tess
  • If broken it is, fix it you should

    Debugging memory leaks in Compact Framework / Windows CE applications

    • 2 Comments
    This is way out of the scope of what I normally troubleshoot, but I have gotten some questions around this and I just wanted to point out a really good resource (By Raffaele Limosani), for troubleshooting memory leaks in these kind of applications. http://blogs.msdn.com/raffael/archive/2008/02/21/netcf-memory-leak-now-what.aspx
  • If broken it is, fix it you should

    Planning a new .net debugging lab set – What do you want to see?

    • 25 Comments
    There’s been close to 25 000 downloads of the buggy bits lab set , YAY!!! :)  but now I think it’s time to expand it a bit with some new labs.  I have a few different issues in mind but I wanted to check in and see if there is something specific you want to see in the new lab set.  I know that the first request I’ll probably get is to include something about COM debugging or debugging RCW/CCW leaks and I might do that, but I just want to say that I am struggling a bit with this. ...
  • If broken it is, fix it you should

    Slides for interactive TechEd Sessions about debugging .net issues in windbg

    • 2 Comments
    ... and here are the slides for the interactive session
  • If broken it is, fix it you should

    Slides and resources for TechED presentations about debugging .NET issues with Windbg

    • 8 Comments
    I still have to figure out a way to host the video from the break-out session but until then, here are the slides for my presentations (attached). And here are a list of some of the tools and resources I used for the presentations Tool/Resource Comment Download Link Debugging Tools for windows Windbg, adplus etc. http://www.microsoft.com/whdc/devtools/debugging/default.mspx Debug Diag 1.1 Analyzes dumps, good for native memory leaks http://www.microsoft...
  • If broken it is, fix it you should

    Behind the scenes at TechEd EMEA - Things I learned about presenting at large conferences

    • 17 Comments
    I'm back from TechEd in Barcelona, and it was one of the most fun, scary and humbling roller coaster rides I have ever been on. I am a bit of a glutton for punishment becuase I signed up to do two sessions and before I knew it I was scheduled to do one in the auditorium (on the largest stage I have ever seen, 760 sq ft). Not only that, but when I got to Barcelona they had scheduled me to do a repeat of the interactive session. I really do appreciate all the people that showed up at my sessions...
  • If broken it is, fix it you should

    Troubleshooting appdomain restarts and other issues with ETW tracing

    • 4 Comments
    You learn something new every day… I was working on an issue with appdomain restarts caused by page re-compilations because aspx pages were created and modified from the code. You can get lifetime event information such as shutdown reasons, compilation information etc. in the eventlog by enabling Application Life Time Events in your web.config (See this post for more info about this and application restarts in general) We were seeing a lot of the following messages EventID: 1305 Event...
  • If broken it is, fix it you should

    PDC announcements about Dump debugging for .NET 4.0

    • 3 Comments
    Mike Stall just wrote a very interesting post about ICoreDebug announcements at the PDC.  More specifically that ICoreDbg for 4.0 will support dump debugging which means that ICoreDebug based debuggers (eg. Visual Studio) will also be able to support this.  This is the best news I’ve heard in a long long time:) since it means that we can do post-mortem debugging in a bit more familiar environment than windbg (which is currently the tool of choice for this). Unfortunately I wasn’t at the...
  • If broken it is, fix it you should

    Performance by Design – PDC 2008

    • 1 Comments
    Rico Mariani (Chief Architect of Visual Studio – previously performance architect for .net), Vance Morrison (Performance architect for .net) and Mark Friedman (Architect Lead for the Developer Division of Performance Engineering) had a full day talk at the PDC about performance. Unfortunately recordings are probably not going to be available since this was done at the pre-conference, but Vance posted all the slides they used on his blog . Performance by Design Intro – Rico Mariani Performance by...
  • If broken it is, fix it you should

    Need your input for TechEd EMEA sessions on troubleshooting .net applications

    • 18 Comments
    TechEd EMEA Developers is just around 2 weeks away now and the pre-conference nervousness is starting to get to me:)   This will be my first time at TechEd (even as an attendee) so I am really excited. I was just chatting a little with one of the track-owners to figure out what the venue and the presentation rooms looked like to get a feel for what the sessions are going to be like.  They scheduled my breakout session ( WUX405 Common ASP.NET production issues and how to troubleshoot...
  • If broken it is, fix it you should

    Troubleshooting ASP.NET issues with HTTPERR logs

    • 4 Comments
    I am doing some email cleanup and got a request to write a post about how to use the HTTPERR logs. I thought long and hard about what I could write that would add value.  There is a really good KB article on the topic http://support.microsoft.com/default.aspx?scid=kb;en-us;820729 that goes through how to set it up properly and what all the error codes mean, and there is another good article from asp alliance on how to use LogParser to perform queries against the http error logs to sift through...
  • If broken it is, fix it you should

    Debugging hangs, memory leaks or exceptions in silverlight apps with sos

    • 0 Comments
    Back in August I wrote a post about how to debug these types of issues in silverlight applications.  Since Silverlight 2.0 RTM’d this is now a bit more relevant so just wanted to refresh your memory that you can debug these types of applications and issues with windbg and sos if neccessary. http://blogs.msdn.com/tess/archive/2008/08/21/debugging-silverlight-applications-with-windbg-and-sos-dll.aspx The version numbers are different now but all the rest is the same. Tess
  • If broken it is, fix it you should

    .NET Debugging at TechED EMEA (10-14 November in Barcelona)

    • 4 Comments
    I hope you will join me for TechEd in Barcelona on the 10th-14th of November. I will be presenting 2 sessions, one breakout and one interactive session: WUX405 Common ASP.NET production issues and how to troubleshoot them with windbg “ This session presents the most common causes for hangs, performance issues, crashes, and memory problems in ASP.NET applications. The problems and demos shown are a compilation of many years of experience in troubleshooting these types of issues for some of our largest...
Page 4 of 11 (261 items) «23456»