|
楼主 |
发表于 2009-12-16 00:56
|
显示全部楼层
\SDK\bin\palm-log.bat
5 p0 ?: k9 }& g, d( B$ I& d# Q' c
参数:5 R% _8 }$ F* r. q) F( _; T
* V- y. [7 |) j9 U+ lUsage: palm-log [OPTION...] [APP_ID]
8 ?# D' G& Z4 M- FDisplay application logs from a Palm device.7 J% n$ R. m' E2 w0 e3 f6 {
. z% O/ n5 s5 }! T. t# E7 GOptions:
( B& k! P& F( v-d, --device=DEVICE # specify DEVICE to use
& e; L% h# F1 [6 n# h, V2 j7 I-l, --list # list the installed applications/ I' J6 P: h0 @3 c- I6 l; n% j- \
-f, --follow # follow the log output (use Ctrl-C to terminate)
5 p' w# K, u4 f! {8 n0 m2 _ --version # display version info and exit" V- ]% \9 B- g" U* H% ~" \
--help # display this help and exit
. P" v8 C/ V. a1 o% t: z4 t- C# O$ M- }
APP_ID is the id of the application for which logs are shown." ^" q& X) |4 k
, O/ e* o: F8 t, z6 Q+ ], D
DEVICE is a unique device id, "usb" for any usb-connected device, or "tcp" for4 E8 ^, q& v" k( R c$ ~
the emulator (must be running). If not specified, the first device found is used3 _) x. x( J2 [+ y% E
.
' Z9 i6 l) N3 T8 q N7 r0 Z( O% T6 i8 E+ F: x4 V5 l4 V0 I
Examples:- Y) I% i- k, e
1 B/ j! W5 x+ _6 D, K# Display logs for app# R! V5 t5 T' h' l' M6 k
palm-log com.example.app2 J X0 _( P* a9 G: W2 G/ T
4 n+ v6 J6 S( A: U- X4 y1 m
# Follow logs for app
" x% U: ~9 T' R0 I2 opalm-log -f com.example.app
7 U7 B* {2 L4 y Y7 M
1 b& h6 `( k1 q& V# List applications on default device$ n0 f' j& C( D( ^' j/ p
palm-log -l
I: a: d+ j- o- D: H& K2 k3 M: i# t, |: O6 j% q
# List applications on usb-connected device
9 f' d9 V' m( c1 p/ V( zpalm-log -d usb -l
7 j/ v$ _8 M [4 x2 G
5 q1 L* F* |6 m; {) i- F# List applications on emulator% ], Q1 }% I- M6 q2 C! X
palm-log -d tcp -l * F( ]% I6 K* K9 d% f2 c& r3 E
1 {6 J9 F9 J9 `0 u' }6 f$ M. f
软件调试的好东西 显示程序中Mojo.Log.info()的信息 比dbug方便多了 8 Y$ S0 l5 R1 b! R. E
+ t4 c6 D- Y/ E' l+ b# F
emulator上好用
7 M; f$ X5 v9 F G/ t7 w
% q* M5 M9 n- _: B) s J我用palm-log -d usb -f com.xxx.xxx命令 显示已经连接 但是log没有显示:
5 e1 _ }: M9 g1 u6 m2 O2 L5 k! {9 x& B1 _6 ^% C( B
D:\PalmPre\SDK\bin>palm-log -f -d usb com.xxx.xxx
5 p; e4 f& I1 Nconnecting to device castle-linux (4A1E4A93ACA8
" n/ i/ t3 M0 \5 v3 |& j9 [3551)
. p3 a5 y/ L0 I2 @/ Nfollowing logs for application com.xxx.xxx |
|