~ubuntu-branches/ubuntu/karmic/pilot-link/karmic

« back to all changes in this revision

Viewing changes to doc/README.debugging

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2007-02-14 23:30:59 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070214233059-znxrekb2mgjr0mgd
Tags: 0.12.2-1
* New upstream release
 - Closes: #410152 "pilot-link: udev rules need updating"
* debian/control: add Build-Depends: libbluetooth2-dev
 - add bluetooth support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
DEBUGGING PILOT-LINK
2
 
--------------------
3
 
 
4
 
In order to debug problems, libpisock by default contains runtime debugging
5
 
 
6
 
Pass the --disable-debug configure option to disable at build time. Debugging
7
 
is enabled by default, so there is no --enable-debugging target.
8
 
 
9
 
The runtime debugging is controlled by four different environment variables:
10
 
 
11
 
        PILOT_DEBUG
12
 
        PILOT_DEBUG_LEVEL
13
 
        PILOT_LOG
14
 
        PILOT_LOGFILE
15
 
 
16
 
PILOT_DEBUG controls what types of information are displayed.
17
 
 
18
 
        The options are:
19
 
            
20
 
            DEV      Device I/O
21
 
            SLP      Serial Link Protocol
22
 
            PADP     Packet Assembly/Disassembly Protocol
23
 
            CMP      Connection Management Protocol
24
 
            NET      Network Sync Protocol
25
 
            SOCK     Socket Commands
26
 
            API      API (datebook, todo, etc)
27
 
            USER     User apps      
28
 
            
29
 
You can specify multiple types of information, ie:
30
 
 
31
 
        PILOT_DEBUG="DEV SLP PADP"
32
 
 
33
 
PILOT_DEBUG_LEVEL controls the level of information displayed for each type.
34
 
 
35
 
        The options are:
36
 
 
37
 
            NONE     No information
38
 
            ERR      Critical errors
39
 
            WARN     Non-critical errors
40
 
            INFO     General information
41
 
            DEBUG    Verbose debugging info
42
 
 
43
 
If PILOT_LOG is set, the information will be written to the file
44
 
"pilot-link.debug", this can be overridden by setting PILOT_LOGFILE to the
45
 
desired file name.
46
 
 
47
 
Here's an example of the usage (for bash, your shell may vary): 
48
 
 
49
 
        export PILOT_DEBUG="DEV SLP CMP PADP SOCK NET USER"
50
 
        export PILOT_DEBUG_LEVEL="DEBUG"
51
 
        export PILOT_LOG=1                      # Set this to 0 to disable debugging
52
 
        export PILOT_LOGFILE="debug.log"
 
1
======================================================================
 
2
README.debugging
 
3
Author: JP Rosevear, David A. Desrosiers
 
4
Updated: Mon Oct 16 16:37:45 EDT 2006
 
5
======================================================================
 
6
This README will describe in detail, the process and programs necessary
 
7
to debug any problems you might have with pilot-link with libusb on
 
8
Linux and Mac OS X machines.
 
9
 
 
10
Debugging pilot-link
 
11
--------------------------------------------------------------------------
 
12
To begin debugging problems, the core library "libpisock" contains
 
13
runtime debugging features. You do not need to recompile pilot-link to
 
14
include these.
 
15
 
 
16
If you want to disable them (not recommended, but you may if you know
 
17
what you're doing), simply pass the --disable-debug configure option to
 
18
disable at build time. Debugging is enabled by default, so there is no
 
19
--enable-debugging target.
 
20
 
 
21
 
 
22
Environment variables for debugging
 
23
--------------------------------------------------------------------------
 
24
        The runtime debugging is controlled by setting four different
 
25
        environment variables. These are:
 
26
 
 
27
                PILOT_DEBUG
 
28
                PILOT_DEBUG_LEVEL
 
29
                PILOT_LOG
 
30
                PILOT_LOGFILE
 
31
 
 
32
        PILOT_DEBUG controls what type of information is output to STDOUT or
 
33
        your logfile. The levels of information available are:
 
34
            
 
35
                DEV      Device IO
 
36
                SLP      Serial Link Protocol
 
37
                PADP     Packet Assembly/Disassembly Protocol
 
38
                CMP      Connection Management Protocol
 
39
                NET      Network Sync Protocol
 
40
                SOCK     Socket Commands
 
41
                API      API (datebook, address, todo, memos, etc)
 
42
                USER     User data
 
43
 
 
44
        You can specify multiple types of information to be output/captured
 
45
        as follows:
 
46
 
 
47
                setenv PILOT_DEBUG "DEV SLP PADP" # for csh
 
48
 
 
49
        or
 
50
 
 
51
                export PILOT_DEBUG="DEV SLP PADP" # for bash
 
52
 
 
53
        PILOT_DEBUG_LEVEL controls the level of information displayed for
 
54
        each type. The availab levels are:
 
55
 
 
56
                NONE     No information displayed at all
 
57
                ERR      Critical errors
 
58
                WARN     Non-critical errors
 
59
                INFO     General information
 
60
                DEBUG    Verbose debugging info, everything!
 
61
 
 
62
        If the variable PILOT_LOG is set (nonzero), the information will be
 
63
        written to the file "pilot-link.debug" by default. This logfile name
 
64
        be overridden by setting PILOT_LOGFILE to the desired file name you
 
65
        wish to use.
 
66
 
 
67
        If you wish to disable logging for a particular session, just set
 
68
        PILOT_LOG to 0.
 
69
 
 
70
        Here's an example of the overall usage (for bash, your shell may
 
71
        vary):
 
72
 
 
73
                export PILOT_DEBUG="DEV SLP CMP PADP SOCK NET USER"
 
74
                export PILOT_DEBUG_LEVEL="DEBUG"
 
75
                export PILOT_LOG=1
 
76
                export PILOT_LOGFILE="debug.log"
 
77
 
 
78
        These logs will provide a level of detail necessay for the
 
79
        pilot-link developers (or yourself) to try to track down why your
 
80
        Palm device is not communicating properly with pilot-link on your
 
81
        machine or operating system.
 
82
 
 
83
 
 
84
Capturing the output 
 
85
--------------------------------------------------------------------------
 
86
        FIXME
 
87
 
 
88
 
 
89
How do I read this stuff?
 
90
--------------------------------------------------------------------------
 
91
        FIXME
 
92
 
 
93
 
 
94
Now what do I do next?
 
95
--------------------------------------------------------------------------
 
96
        FIXME
 
97
 
 
98
 
 
99
Donating to pilot-link
 
100
--------------------------------------------------------------------------
 
101
        Do you like our work? Do you rely on the code we release for
 
102
        your daily work or for your own commercial or OSS project?
 
103
 
 
104
        Please consider donating to keep the project going. We're 100%
 
105
        self-funded, and we see a LOT of traffic from users and
 
106
        downloads. Every contribution helps, whether to pay for
 
107
        bandwidth or to buy devices for testing.
 
108
 
 
109
        You can help support us by visiting the pilot-link.org site and
 
110
        clicking on the "Donate" button on the left side of the page.
 
111
 
 
112
        We thank you for your contributions, whatever you can offer.