Changes between Version 23 and Version 24 of WebKitGTK/Debugging


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

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/Debugging

    v23 v24  
    139139{{{
    140140#!sh
    141 $ export GST_DEBUG="webkit*:5"
     141$ export GST_DEBUG="3,webkit*:5"
    142142}}}
    143143
    144 To debug a multimedia test inside DRT (Dump Render Tree):
     144To debug a multimedia layout test:
    145145{{{
    146146#!sh
    147 $ Tools/Scripts/run-webkit-tests --gtk --additional-env-var=GST_DEBUG=webkit*:5 --additional-env-var=GST_DEBUG_NO_COLOR=1 http/tests/media/video-play-stall.html
     147$ GST_DEBUG=webkit*:5 GST_DEBUG_NO_COLOR=1 Tools/Scripts/run-webkit-tests --gtk http/tests/media/video-play-stall.html
    148148}}}
    149149
    150 == Debugging tests ==
    151 
    152  * In order to run tests inside the @jhbuild@ shell, these two environment variables must be set:
    153 {{{
    154 #!sh
    155 $ export TEST_RUNNER_TEST_PLUGIN_PATH=$WEBKIT_HOME/WebKitBuild/Release/Libraries/.libs/
    156 $ export TEST_RUNNER_INJECTED_BUNDLE_FILENAME=$WEBKIT_HOME/WebKitBuild/Release/Libraries/libTestRunnerInjectedBundle.la
    157 }}}
    158 
    159 
    160 == Debugging issues ==
    161 
    162  * Some times when running the WebKitTestRunner (WK2) you can see linking errors like the following one:
    163 {{{
    164 #!sh
    165 
    166 (lt-WebKitWebProcess:3392): WARNING **: Error loading the injected bundle (/home/javi/devel/WebKit/webkit.git/WebKitBuild/Debug/Libraries/libTestRunnerInjectedBundle.la): /home/javi/devel/WebKit/webkit.git/WebKitBuild/Debug/Libraries/.libs/libTestRunnerInjectedBundle.so: undefined symbol: _ZTVN7leveldb10ComparatorE
    167 }}}
    168    * One possible cause of such errors are missing symbols in the '''Source/autotools/symbols.filter'''. These symbols are automatically exposed in the by the '''libWebCoreInternals''' library via tags. Such library expose some symbols for testing purposes, just like the WTR application does.
    169    * The symbols.filter should be updated by a fresh checkout, but if that's not the case, it's possible to workaround the issue by manually adding the missing symbols to the file.
     150Once the MiniBrowser opens showing the results, look for the stderr hyper-text link. The GStreamer logs will be in that file.
    170151
    171152== Related ==