When setting a data watch point for y in the following code, the debugger will first "stop" at line 5 instead of line 4, which is a little bit confusing as it is the line 4 which modified y.
static var y = 0;
static function main() {
trace(y); // <- watch y here and continue
y = 15 * 15;
trace(y); // <- break has a backtrace point at this line instead of previous line
}
This PR make backtrace return line 4 instead of line 5 in case of watch.
When setting a data watch point for
y
in the following code, the debugger will first "stop" at line 5 instead of line 4, which is a little bit confusing as it is the line 4 which modifiedy
.This PR make backtrace return line 4 instead of line 5 in case of watch.