Quick Tip: Debugging Smart Device Unit Tests

While browsing MSDN today, I came upon a handy article that I wanted to share.   Titled ‘How to: Debug while Running a Smart Device Unit Test’, it provides step by step instructions on debugging your test projects. There is one additional step I would like to add to those listed in the article. WARNING: Using…

0

What is a Side Effect?

We’ve all heard the commercials or read the prescription information sheets describing the possible side effects of medications.  The side effects described are typically negative (ex: upset stomach).  There are other side effects of a more positive nature; a medication helping treat an illness that it was not designed for, etc.  In software, side effects…

1

Command Line Debugging Revisited – Part 6: IL Debugging Commands

Dan Elliott recently posted about the IL OpCodes supported by the .NET Compact Framework.  This got me inspired to talk about the IL debugging commands in the .NET Compact Framework MDbg extension (mdbgnetcf.dll).Commandsdis[assemble]in[ext]is[tep]o[ut]As with the previous installments of this series, I will be using the Visual Studio 2005 WebCrawler sample application as the debuggee.  You…

2

Command Line Debugging Revisited – Part 5: The X Command

In the previous installment, I talked about attaching to running processes using MDbg.  As part of that discussion, I used the X command.  Today, I’d like to spend a little time on X.  The X command is one of those great features of MDbg that I think is worth the price of admission by itself.From…

2

Using the .NET Compact Framework Remote Performance Monitor to Configure Diagnostic Options

Diagnostic, performance and debugging tools are very cool.  The more tools available, the easier it tends to be to find and fix application issues.  With Visual Studio 2005, several handy tools were added.  I use the Remote Registry Editor and Remote File Viewer just about every day.  Version 2 of the .NET Compact Framework added…

2

Command Line Debugging Revisited – Part 4: Attaching to Processes

Being able to attach to a running process is a very powerful debugger feature.  It is especially handy when the application is in the field.  With the CorDbg debugger, formal attach to process support was not available when debugging .NET Compact Framework applications.  Using the .NET Compact Framework MDbg debugger extension (in version 2 service…

4

The Error Log: A New Diagnostic in .NET Compact Framework v2 Service Pack 1

The recent release of Service Pack 1 for the .NET Compact Framework version 2 has added some very useful diagnostic tools.  You may have already read about the .NET Compact Framework Remote Performance Monitor, and have hopefully used it to analyze the performance characteristics of your applications.  Today, I would like to talk about another…

2

Command Line Debugging Revisited – Part 3: Process Control

In the previous parts of this series, I talked about getting started with MDbg and using the Device Emulator.  Today, I would like to talk about how to use MDbg to control processes on the device being debugged.Commandscp[roc]kp[roc]pro[cessenum]The cp[roc] command – Running a process without attaching the debuggerIn my getting started post, I talked about…

4

Command Line Debugging Revisited – Part 2: The Device Emulator

The Visual Studio 2005 Device Emulator is a very cool tool for developing, testing and debugging Windows Mobile applications.  You can design for and run on the wide variety of Windows Mobile devices.  In addition, you can install and use the localized images, to run your applications on international versions of the Windows Mobile operating…

3

Command Line Debugging Revisited – Part 1: Getting started with MDbg and .NET Compact Framework Version 2 Service Pack 1

It’s been a while since I last wrote about using the command line debugger (cordbg) with the .NET Compact Framework.  Quite a bit has changed in the world of .NET Compact Framework command line debugging since that time.With the release, last year, of version 2 of the .NET Framework SDK, a new command line debugger…

16