Implemented also the source code lines.

Noe at "break" you see the source code line of the entire expression. If
you see more than one line, that means you stopped at an expression that
spans more than one line. This makes a difference when repeatedly
stopping in the same line because of multiple expressions that start in
that line. For example, for an IfExpr, you will stop using "in"/"step"
command both at the "if" expression and at the if condition expression
which are usually in the same line. If you see the entire if, you are at
the if, if you see only the first line of the if expr you are at its

** Changed in: zorba
       Status: Incomplete => Fix Committed

** Changed in: zorba
    Milestone: None => 2.2

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  Debugger: print source code of current line in debugger client

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  In gdb, the source code of the current line number is printed when the
  debugger breaks somewhere, e.g.:

  (gdb) r
  Starting program: /home/dagraf/test/test 

  Breakpoint 1, main () at test.cpp:8
  8       lSet.insert("david");
  (gdb) n
  9       lSet.insert("graf");
  (gdb) n
  10      lSet.insert("dfa");
  (gdb) n
  11      lSet.insert("aaaa");
  (gdb) n
  13      std::set<std::string>::iterator lIter = lSet.begin();

  This makes debugger much easier. Would be very helpful in xqdb.

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to