<?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>20139</bug_id>
          
          <creation_ts>2008-07-23 02:28:58 -0700</creation_ts>
          <short_desc>debugger keyword does not work in eval code</short_desc>
          <delta_ts>2009-10-29 07:58:57 -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 (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Johan Lund">jl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>jl</cc>
    
    <cc>oliver</cc>
    
    <cc>pmuellr</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86709</commentid>
    <comment_count>0</comment_count>
    <who name="Johan Lund">jl</who>
    <bug_when>2008-07-23 02:28:58 -0700</bug_when>
    <thetext>The new break on &quot;debugger&quot; keyword feature only works if the JavaScript code belongs to an actual file.
The debugger does not seem to be able to work with code that has been read in with eval.
Unfortunately most of the code of our JavaScript framework (Bindows) is evaled in which renders the webkit debugger nearly useless to us.

We have the same problem with FireFox but in Internet Explorer they have solved this with the Microsoft Script editor.

Could something please be done towards this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86789</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-07-23 15:58:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/6097996&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86794</commentid>
    <comment_count>2</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-07-23 16:17:16 -0700</bug_when>
    <thetext>We do support debugging eval code, you can step into the eval call and debut the parsed script. This is just a bug with the debugger keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86825</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-07-24 00:39:28 -0700</bug_when>
    <thetext>Curious, i cannot immediately see why the debugger keyword would not work inside the eval :-/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86829</commentid>
    <comment_count>4</comment_count>
    <who name="Johan Lund">jl</who>
    <bug_when>2008-07-24 01:13:07 -0700</bug_when>
    <thetext>Oliver: Do you mean that you need a test case or that you can&apos;t immediately see the root of the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86830</commentid>
    <comment_count>5</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-07-24 01:35:50 -0700</bug_when>
    <thetext>I meant i can&apos;t immediately see the source of the problem -- i&apos;m assuming eval(&quot;debugger;&quot;) will be sufficient to test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92912</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-09-26 05:23:20 -0700</bug_when>
    <thetext>I can&apos;t reproduce this -- can anyone else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92928</commentid>
    <comment_count>7</comment_count>
    <who name="Johan Lund">jl</who>
    <bug_when>2008-09-26 07:49:18 -0700</bug_when>
    <thetext>In Bindows with a late webkit version the debugger keyword breakpoints the code at the correct location and I can step but I am in the wrong file (I&apos;m in the launcher html file) and I cant see the code that is actually executing. So I did some initial work on trying to repro this outside of Bindows - unsuccessful so far. I will continue and get back to you with more research as soon as possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95153</commentid>
    <comment_count>8</comment_count>
    <who name="Johan Lund">jl</who>
    <bug_when>2008-10-13 02:08:05 -0700</bug_when>
    <thetext>I have tried to reproduce this in a clean scenario but I am unable to.
Is it ok if I send you a link via email with code that reproduces this problem?

Best regards
Johan Lund
Bindows Team</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95162</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-10-13 10:20:23 -0700</bug_when>
    <thetext>@Johan: sure, but i can&apos;t guarantee i&apos;ll get to this in the immediate future</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95252</commentid>
    <comment_count>10</comment_count>
    <who name="Johan Lund">jl</who>
    <bug_when>2008-10-14 01:04:11 -0700</bug_when>
    <thetext>No worries. I have emailed a download link and instructions.
Thanks...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158884</commentid>
    <comment_count>11</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-10-29 07:20:11 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; No worries. I have emailed a download link and instructions.

I tried a simple test of this and was able to get the debugger to stop with the debugger &quot;command&quot; in an eval&apos;d string.

WORKSFORME

Where&apos;s the test case?  Or since this is &gt;1 year old, maybe there was a problem but it&apos;s since been fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158895</commentid>
    <comment_count>12</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2009-10-29 07:58:57 -0700</bug_when>
    <thetext>Please reopen if this still happens with a test case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>