<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>137663</bug_id>
          
          <creation_ts>2014-10-13 11:28:27 -0700</creation_ts>
          <short_desc>Web Inspector: should be able to dump protocol traffic to console when remote inspecting</short_desc>
          <delta_ts>2026-01-12 09:02:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>151635</dependson>
          <blocked>147066</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Burg">burg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1041315</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-10-13 11:28:27 -0700</bug_when>
    <thetext>This does nothing when remote inspecting:

WebKit2LogsPageMessagesToSystemConsoleEnabled

So even if InspectorBackend is dumping protocol traffic, you can only see it in the second level inspector. This doesn&apos;t scale well if you need to look at large amounts of traffic or save it to a file for processing.

It would be great if we had some way to optionally forward console messages so they would be dumped on the desktop&apos;s stderr, rather than on an iOS device. A workaround is using InspectorFrontendHost.unbufferedLog to dump protocol messages, but it would be good to see other console output as well.

We could expose WebKit2LogsPageMessagesToSystemConsoleEnabled through InspectorFrontendHost, but it&apos;s not easy to tee the calls to console.log since it is implemented as a native method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041318</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-10-13 11:28:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/18636166&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1042650</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-10-18 17:00:07 -0700</bug_when>
    <thetext>I guess the inspector could forward console.log calls to InspectorFrontendHost.unbufferedLog (or something similar) if inspecting a remote target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139733</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-11-05 13:34:30 -0800</bug_when>
    <thetext>Maybe the problem is that remote inspector is WK1, and it&apos;s a different pref. We have too many prefs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144642</commentid>
    <comment_count>4</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-11-28 00:07:32 -0800</bug_when>
    <thetext>Adding dependency which will make it possible to implement a proxying protocol tracer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>