Interactive Debugging

As the final step in this chapter, let's try debugging the application. Instead of pressing F5, press F10 (the shortcut for Step Over on the debug menu). Doing so will build, deploy, and launch the emulator, but you will be stepping into your code at the very same place the emulator begins execution: the entry point.

Pressing F10 again will bring you to the point just before Debug.Print() is invoked. You can hover the mouse over the string resource (String1) to see that, indeed, it is an object. With the Output window displayed, press F10 again to perform the call and watch the string appear.

Now, let's show off one feature of interactive debugging on the emulator (or on an actual device, for that matter) by repeating that ...

Get Embedded Programming with the Microsoft® .NET Micro Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.