Difference between revisions of "How to debug Weston"

[quality revision] [quality revision]
m
m
 
Applicable for STM32MP13x lines, STM32MP15x lines

1 Wayland logs[edit]

To get the logs of the wayland protocol messages, set this environment variable:

 export WAYLAND_DEBUG=1

2 Saving Weston logs in a file[edit]

Standard Weston logs are available in the /varhome/logweston/weston.log file when Weston is started with the "weston user" using the systemd service.

 cat /varhome/logweston/weston.log

3 Displaying Weston logs on a console[edit]

Start Weston with the following command:

 weston --tty=1 &

All Weston logs are then displayed on the console.



<noinclude>{{ApplicableFor
|MPUs list=STM32MP13x, STM32MP15x
|MPUs checklist=STM32MP13x,STM32MP15x
}}</noinclude>

== 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/loghome/weston/weston.log''' file when Weston is started with the "weston user" using the systemd service.
 {{Board$}} cat /var/loghome/weston/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>
Line 3: Line 3:
 
|MPUs checklist=STM32MP13x,STM32MP15x
 
|MPUs checklist=STM32MP13x,STM32MP15x
 
}}</noinclude>
 
}}</noinclude>
==Wayland logs==
+
== Wayland logs ==
 
To get the logs of the wayland protocol messages, set this environment variable:
 
To get the logs of the wayland protocol messages, set this environment variable:
 
  {{Board$}} export WAYLAND_DEBUG=1
 
  {{Board$}} export WAYLAND_DEBUG=1
   
==Saving Weston logs in a file==
+
== 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.
+
Standard Weston logs are available in the '''/home/weston/weston.log''' file when Weston is started with the "weston user" using the systemd service.
  {{Board$}} cat /var/log/weston.log
+
  {{Board$}} cat /home/weston/weston.log
   
==Displaying Weston logs on a console==
+
== Displaying Weston logs on a console ==
 
Start Weston with the following command:
 
Start Weston with the following command:
 
  {{Board$}} weston --tty=1 &
 
  {{Board$}} weston --tty=1 &