palmlog

\SDK\bin\palm-log.bat

参数:

Usage: palm-log [OPTION...] [APP_ID]
Display application logs from a Palm device.

Options:
-d, --device=DEVICE         # specify DEVICE to use
-l, --list                  # list the installed applications
-f, --follow                # follow the log output (use Ctrl-C to terminate)
    --version               # display version info and exit
    --help                  # display this help and exit

APP_ID is the id of the application for which logs are shown.

DEVICE is a unique device id, "usb" for any usb-connected device, or "tcp" for
the emulator (must be running). If not specified, the first device found is used
.

Examples:

# Display logs for app
palm-log com.example.app

# Follow logs for app
palm-log -f com.example.app

# List applications on default device
palm-log -l

# List applications on usb-connected device
palm-log -d usb -l

# List applications on emulator
palm-log -d tcp -l

软件调试的好东西 显示程序中Mojo.Log.info()的信息 比dbug方便多了

emulator上好用

我用palm-log -d usb -f com.xxx.xxx命令 显示已经连接 但是log没有显示:

D:\PalmPre\SDK\bin>palm-log -f -d usb com.xxx.xxx
connecting to device castle-linux (4A1E4A93ACA8
3551)2971445779
following logs for application com.xxx.xxx

原文地址:https://www.cnblogs.com/tiechui/p/1802601.html