|
楼主 |
发表于 2009-12-16 00:56
|
显示全部楼层
\SDK\bin\palm-log.bat
9 v8 t" v0 a, X/ k' a( L) D G) n y( z9 Q7 g/ d4 g3 C( f! ^
参数:
- `# @6 \/ r$ w" u9 I' q5 O$ U6 P6 K B x
Usage: palm-log [OPTION...] [APP_ID]5 b# O5 s5 z; Y' }$ z3 M7 P- }! z
Display application logs from a Palm device./ c) e; b0 A0 |3 E- U& q
( d" z' e4 Y. [5 c$ s9 Z( p% l" @
Options:
2 ^! S6 f! T1 [/ q0 \3 K/ \" W-d, --device=DEVICE # specify DEVICE to use8 {- K) ?' I% R2 l
-l, --list # list the installed applications* H& S7 j6 ?2 K, w
-f, --follow # follow the log output (use Ctrl-C to terminate)
/ v3 ? f* T; m9 z" y$ N/ F; Q --version # display version info and exit
8 U+ r0 _, W# s' L( @ --help # display this help and exit
( o3 m. {; L9 i* `- X. Q# j D; W* x. |7 G
APP_ID is the id of the application for which logs are shown.
$ I- u% ]1 E7 G! e" P% ^, U
9 c9 r% M' m" f" ^- Z' CDEVICE is a unique device id, "usb" for any usb-connected device, or "tcp" for
4 _% |, e+ j$ o8 w: u0 d% fthe emulator (must be running). If not specified, the first device found is used: e6 R5 I, y3 \
." Q- c' R' L# i9 t
/ S/ J' @! J$ a N. R8 M
Examples:7 _+ Y, v6 U( ~# l# e5 c! d" m. `
2 h7 k7 O S) h' m
# Display logs for app0 R1 q* W& s! N; W0 M) _$ W3 X
palm-log com.example.app: {+ M$ y/ H8 v
8 {( |7 A& M D. W3 G. c, t. ?
# Follow logs for app
0 A& z; @6 S. F( |palm-log -f com.example.app
$ s% [/ d- @: H5 ]9 s; y
- x, [2 A) n) Y: ~. b) w# List applications on default device+ t" H8 @8 F* X2 o/ U
palm-log -l
! S* j1 O( V' G% y1 s0 W. @3 i5 [
7 l( D i: C& X2 |2 }+ c# List applications on usb-connected device {6 F" J a d4 P
palm-log -d usb -l( b3 Q. e( l; k8 K ^1 @' ?
& ^ j- @4 s }; \1 L# List applications on emulator! C+ t Y9 O; O! n
palm-log -d tcp -l
; P$ q) R+ c$ I: y( P
; Y# g& I4 e9 K软件调试的好东西 显示程序中Mojo.Log.info()的信息 比dbug方便多了 5 |1 t( R/ P6 f
- R$ v4 P7 Z0 o$ H+ R- B
emulator上好用
6 j0 _# T( C& t f2 x/ O8 j7 d4 Y/ m N8 S+ W g
我用palm-log -d usb -f com.xxx.xxx命令 显示已经连接 但是log没有显示:
' x: R1 X' @" z5 x4 }& a n0 y1 B+ X& |
D:\PalmPre\SDK\bin>palm-log -f -d usb com.xxx.xxx$ @* q3 ?( T) o r8 o
connecting to device castle-linux (4A1E4A93ACA8
# f3 k2 `3 E$ O! s3551)
) L3 i4 w X9 o/ m3 {& a @following logs for application com.xxx.xxx |
|