Improve breakpoint generator of the debugger. (#1652)
Now the debugger generates a breakpoint for each function before its first executable statement. This allows inspecting the function arguments. Position (line and column) info is also added which simplifies finding of anonymus functions. Several tests were update to check more corner cases. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
+28
-10
@@ -17,17 +17,35 @@ print("break test");
|
||||
print ("var cat");
|
||||
var cat = 'cat';
|
||||
|
||||
function test()
|
||||
function test(x)
|
||||
{
|
||||
print("function test");
|
||||
foo();
|
||||
var a = 3;
|
||||
var b = 5;
|
||||
var c = a + b;
|
||||
global_var = c;
|
||||
return c;
|
||||
function f() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
function f() {
|
||||
/* Again. */
|
||||
return 1;
|
||||
}
|
||||
|
||||
function f() {
|
||||
/* And again. */
|
||||
return 2;
|
||||
}
|
||||
|
||||
print("function test");
|
||||
var a = 3;
|
||||
var b = 5, c = a + b;
|
||||
global_var = f();
|
||||
return c;
|
||||
}
|
||||
|
||||
function f() {
|
||||
/* And again. */
|
||||
}
|
||||
|
||||
var
|
||||
x =
|
||||
1;
|
||||
x =
|
||||
1;
|
||||
|
||||
test(x);
|
||||
|
||||
Reference in New Issue
Block a user