O'Reilly logo

Palm Programming: The Developer's Guide by Julie McKeehan, Neil Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Debugging Conduits

Two of the most important tools you have in your debugging arsenal are a number of flags you can set during a sync and source-level debugging in CodeWarrior. After we discuss these, we give some advice on specific problems you might encounter.

Last but not least, we will look at how to clean things up. Mucking about in your conduit code is a good way to mess things up; we show you how to tidy up the registry when you are through.

HotSync Flags

You can launch a sync with several different flags that give you information on what is occurring. These useful flags are:

-v

Verbose mode

-L1

Different verbose mode

-L2

Different verbose mode with packet information

Besides these flags there is another flag, -c, that you can use to verify your connection.

Running HotSync in Verbose Mode with -v

If you want to run HotSync in verbose mode, you set the -v flag by hand from the Run dialog:

c:\PalmDesktopDir\hotsync.exe -v

If you are already running HotSync, you need to exit before you can launch it by hand. Just choose Exit from the menu (see Figure 14.1).

Exiting the running version of HotSync

Figure 14-1. Exiting the running version of HotSync

Once you are in HotSync verbose mode, the log contains a great deal of additional information regarding its activities. Here’s an example verbose log (abridged for space):

---Initializing User Manager--- ---Discovering Communication State--- ---Identifying Viewer user--- ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required