“How to debug Weston”的版本间的差异
来自百问网嵌入式Linux wiki
Zhouyuebiao(讨论 | 贡献) |
Zhouyuebiao(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
| − | {{ | + | ==Wayland logs== |
| + | To get the logs of the wayland protocol messages, set this environment variable: | ||
| + | {{Board$}} export WAYLAND_DEBUG=1 | ||
| − | + | ==Saving Weston logs in a file== | |
| + | Standard Weston logs are available in the '''/var/log/weston.log''' file when Weston is started using the systemd service. | ||
| + | {{Board$}} cat /var/log/weston.log | ||
| + | |||
| + | ==Displaying Weston logs on a console== | ||
| + | Start Weston with the following command: | ||
| + | {{Board$}} weston --tty=1 & | ||
| + | All Weston logs are then displayed on the console. | ||
| + | |||
| + | <noinclude> | ||
| + | {{PublicationRequestId | 9279 | 2018-10-16 | AnneJ}} | ||
| + | [[Category:How to trace and debug]] | ||
| + | [[Category:Wayland Weston]] | ||
| + | </noinclude> | ||
2020年5月8日 (五) 22:56的最新版本
Wayland logs
To get the logs of the wayland protocol messages, set this environment variable:
Board $> export WAYLAND_DEBUG=1
Saving Weston logs in a file
Standard Weston logs are available in the /var/log/weston.log file when Weston is started using the systemd service.
Board $> cat /var/log/weston.log
Displaying Weston logs on a console
Start Weston with the following command:
Board $> weston --tty=1 &
All Weston logs are then displayed on the console.
<securetransclude src="ProtectedTemplate:PublicationRequestId" params="9279 | 2018-10-16 | AnneJ"></securetransclude>