Kiln » TortoiseHg » TortoiseHg
Clone URL:  
debugging.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Debugging ========= .. module:: debugging :synopsis: Debug problems in shell extension or dialogs Dialogy ------- Stderr je zachycen v bufferu, který je prohlížen při ukončení programu. Je-li v bufferu nalezena jakákoliv vážná chyba (tracebacky, atp), je celý jeho obsah poslán do nástroje pro hlášení chyb a uživatel má možnost chybu hlásit. Máte-li podezření, že se vyskytly nezaznamenané chyby, můžete nastavit proměnnou prostředí **THGDEBUG** na jakoukoliv hodnotu, čímž vyřadíte ukládání stderr do bufferu. Máte-li elementární znalost Pythonu, můžete také použít:: hgtk --debugger <command> Chcete-li vyřadit dělení nástroje hgtk, můžete buď zadat proměnnou prostředí **THG_HGTK_SPAWN**, nebo přidat parametr k CLI příkazu '--nofork'. Windows ~~~~~~~ Pro Průzkumník repozitáře lze např. uvnitř pracovního adresáře zadat v okně :command:`cmd.exe`:: set THGDEBUG=1 hgtk log Linux/MacOSX ~~~~~~~~~~~~ Totéž:: export THGDEBUG=1 hgtk log Extenze shellu --------------- Způsob odladění závisí na platformě. Windows ~~~~~~~ See also http://msdn.microsoft.com/en-us/library/cc144064(VS.85).aspx for some info bits about Running and Testing Shell Extensions on Windows The :command:`DbgView` tool from the SysInternals suite will capture debug messages from the shell extension. The :command:`ThgTaskbar` application's options dialog has an error logging tab. If you have this dialog open while you are browsing folders, you will get info and error level messages from the icon overlay refresh process. Nautilus ~~~~~~~~ Debugging is done via the environment variable DEBUG_THG * to test in a separate process:: DEBUG_THG=Ne TMPDIR=/tmp/anydir/ --no-desktop nautilus [path] * to test in the main instance:: nautilus -q DEBUG_THG=NOe nautilus * permanent debugging, set DEBUG_THG in a file which is read on session start (~/.profile, ~/.xprofile) Upper case characters in DEBUG_THG specify modules. Only *O* and *N* for *OverlayCache* and *Nautilus*, respectively, are supported module names. Lower case characters imply parts. Only *e* is supported, implying *error* messages. To restart nautilus, chose either 1) killall nautilus (the session restarts nautilus automatically, stdin and stdout go to ~/.xsession-errors) 2) nautilus -q; nautilus (stdin and stdout are on the console)