Quick Tips: using debugger scripts to your advantage - .shell

Hi, After debugging for quite some time, and looking almost every day at memory dumps you start to think “I really need a command to this, to do that,…” in order to easy on some of the repetitive work and allow you to more quickly focus on the issue itself. I find debuggers scripts to…

0

Quick tips: Is there any exception out there ?

Hello, Let me start by clarifying that this only applies to x86. The reason for this is that on x86 the first field on a CONTEXT (more info at http://msdn.microsoft.com/en-us/library/ms679284 ) structure is a flag with the value 0x1003f.   More often than I desire I get memory dumps (in hang mode) when an exception…

0

Quick tips: Getting detailed info on modules and setting breakpoints on .net

Hello, Sometimes i have to do live debugging in order to understand what’s going on inside a process. Usually when this happens i need to set breakpoints on specific methods. Let’s say that I what to set a specific breakpoint on a method inside Microsoft.Sharepoint.dll (this is just an example, the same applies to every…

0

Quick tips: Kernel Dumps, Blue Screens and !Analyze -v

Hello, This time I’m going to address something that most times is somewhat straight forward to analyze yet many people I deal with don´t know how to proceed when a blue screen appears. In this blog post I assume the server is already configured to generate kernel dumps or mini dumps. (this is something I…

0

Quick tips: How to easily identify a thread in a thread object

Hello, It´s been a while since my last post. I´ve decided to start a new topic regarding debugging posts. It´s called quick tips debugging code and here is my first post on the series. Sometimes while debugging an issue I have to related different threads. (E.g: on a thread there is a reference to another…

0

Object variable or With block variable not set: how to eradicate these tongue-twisters haunting from the past

  In a perfect world, computer applications would be syntactically and semantically correct and complete, thus exhibiting no errors nor flaws. Ours is not a perfect world, though, and even worse is that a significant part of those computer applications are still being coded in Visual Basic 6.0. Great!! This way, we are being given…

0

Under the hood with live debugging

Often, i get the question on how to see what the framework is doing, how to set breakpoints, do live debugging in order to understand what is under the hood. So, I decided to write on the subject and about the approach I usually take when doing live debugging Scenario .Net application that provides a…

2

Yet another Death by the ViewState

Yesterday I ran into an issue where the users were complaining about the application being very slow in a specific page. If you read the title you will probably think “here is another post around how viewstate can cause all sort of problems in my application if it´s not well used bla bla bla …”,…

1

Get Internet Explorer and Google Desktop divorced and they will live happily ever after

  Every once in a while, you get these annoying application crashes for which you do not seem to find the reason. For these end-user applications, we may think of 3 distinct kinds of crashes from a timing perspective: o    An exit crash – aside from a dialog in which you are invited to terminate…

2

Debug Jscript with Internet Explorer 8

As a developer a big pain was (after reading this it will be no more J) troubleshooting JavaScript errors. Internet Explorer has never been a big friend in helping me looking at these issues … this is, until Internet Explorer 8. When the first beta came out, I was very enthusiastic to try the Developer…

2