<?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>138363</bug_id>
          
          <creation_ts>2014-11-04 11:21:27 -0800</creation_ts>
          <short_desc>Web Inspector: When pausing on exception from console we should show the source and call frames</short_desc>
          <delta_ts>2016-05-02 21:46:31 -0700</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>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1046117</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-11-04 11:21:27 -0800</bug_when>
    <thetext>* SUMMARY
Should show source code and call frames for exceptions triggered by console/eval evaluations.

* STEPS TO REPRODUCE
1. Inspect any page.
2. Enable Pause on all exceptions
3. js&gt; setTimeout(function(){[].x.x})
4. When paused, hover over any JavaScript, e.g. &quot;document&quot; in the index.html
  =&gt; Exception, no Call Frames, no Source with the exception

* NOTES
Normally we disallow showing __WebInspectorConsole__ sources, but I think we should show it here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1046118</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-11-04 11:21:54 -0800</bug_when>
    <thetext>&lt;rdar://problem/18869487&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1046119</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-11-04 11:24:18 -0800</bug_when>
    <thetext>Maybe we should do this if there is a __WebInspectorConsole__ in the call frames, but not if there are __WebInspectorInjectedScript__, which should be internal only.

In fact, I think we had a workaround in the frontend to auto-continue in those cases, which we should add back.

See related:
&lt;https://webkit.org/b/138341&gt; Web Inspector: Inspector pauses 3 times when evaluating window.decodeURI(&apos;%%%&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1046180</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2014-11-04 14:31:28 -0800</bug_when>
    <thetext>The idea of not pausing for exceptions from the console is to make the REPL be very friendly to errors. You should see the exception Error logged as the result. For timeouts, that is tricky and likely an edge case.

I don&apos;t want to make the common case of getting an immediate exception cause the debugger to pause in a __WebInspectorConsole__ source resource.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189619</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-05-02 18:51:06 -0700</bug_when>
    <thetext>Tim, I think you effectively fixed this by showing the Console Evaluation script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189674</commentid>
    <comment_count>5</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-05-02 21:46:31 -0700</bug_when>
    <thetext>Yep.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>