找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 2349|回复: 4

[webOS开发] 请问在真机上用palm-log好使么?

[复制链接]
发表于 2009-12-14 12:08 | 显示全部楼层 |阅读模式
没这个东西实在不方便啊
回复

使用道具 举报

发表于 2009-12-14 16:17 | 显示全部楼层
这个具体是怎么样的一个软件?$ T  J5 D/ M' a) T

5 T6 A5 V! ]0 U9 P你说详细一些?
4 }9 d+ l4 ^2 `& f这样大家可以一起测试下.很多不会开发的朋友也可以帮忙了
回复 支持 反对

使用道具 举报

 楼主| 发表于 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
回复 支持 反对

使用道具 举报

发表于 2009-12-24 23:05 | 显示全部楼层
缺省在真机上只显示error。warn和info不显示。
- R9 H  ?7 K& y( |有一个hack的办法:在程序初始化的地方加上这样两行:$ k9 |' L1 X0 I1 d) B! S0 l3 Y
& v9 d4 S, r2 u; F
        console.warn = console.error;" ^; Y% ?' G5 l1 y& h
        console.info = console.error;4 @" E$ j6 E9 J; m4 ?5 C

* m4 t; ?: N3 Z发布的时候不要忘记注释掉这两行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-26 10:27 | 显示全部楼层
谢谢楼上的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2025-4-1 20:37 , Processed in 0.376537 second(s), 16 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表