From:  "giltayar@gmail.com" <giltayar@gmail.com>
Date:  11 Jul 2006 02:10:44 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.jseng
Subject:  

debugger fails to step into nested function in 1.6R2

NNTP-Posting-Host:  212.143.70.150

Hello all,

I have found a problem in the Rhino debugger which breaks on so simple
a program that I am amazed that it wasn't found already (and hoping
that it _was_ and a simple patch is available :->).

Given this simple program (in foo.js):
function foo (page)
{
  var x = 1;
  ++x;
  ++x;
  ++x;
  return true;
}

  function zoo(page)
  {
    var z = 1;
    z++;
    z++;
    return foo(page);
  }

  zoo('ssss');

I run the Rhino debugger using:

java -cp js.jar org.mozilla.javascript.tools.debugger.Main foo.js

Now I click on step into repeatedly. The first one enters zoo, which is
good. Once I get to the

return foo(page);

line and contineu clicking on step into, then the debugger does the
step, but the current line stays on the "return foo..." line.

I have downloaded 1.6R2 and 1.6R1 and it happens on both of them. It
does _not_ happen on 1.5R5.

Help!
Gil