Changes between Version 24 and Version 25 of WebKitGTK/Debugging


Ignore:
Timestamp:
Mar 25, 2020 6:16:40 AM (4 years ago)
Author:
Philippe Normand
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/Debugging

    v24 v25  
    104104 * Notice also the ''DISABLE_NI_WARNING'' env variable referred there.
    105105
    106 It is important to export the ''WEBKIT_DEBUG'' env variable because you will want it to affect also the ''WebProcess''.
    107  * This is an example for turning '''on''' the logging int he ''Network'' channel. Notice that the channels are case insensitive.
     106It is important to export the ''WEBKIT_DEBUG'' env variable because you will want it to affect also the ''WebProcess''. Known log levels associated to log channels are in this order: ''error'', ''warning'', ''info'', ''debug''. So if you enable debug for a specific channel, you will also get the logs for the preceding levels (error, warning, info).
     107
     108 * This is an example for turning '''on''' the logging int he ''Network'' and ''Media'' channels:
    108109{{{
    109110#!sh
    110 $ export WEBKIT_DEBUG="network"
     111$ export WEBKIT_DEBUG="Network=debug,Media=debug"
    111112$ Tools/Scripts/run-minibrowser --gtk
    112113}}}
     114
     115To watch the logs, use `journalctl` like in this example:
     116{{{
     117#!sh
     118$ journalctl -f WEBKIT_SUBSYSTEM=WebKitGTK WEBKIT_CHANNEL=Media
     119}}}
     120
    113121
    114122It is also possible to turn '''on''' the logging and other output/behaviors support in a ''Release'' build by setting the proper C Macros. You may want to check the [http://trac.webkit.org/browser/trunk/Source/WTF/wtf/Assertions.h Source/WTF/wtf/Assertions.h] header.