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:
+29
-31
@@ -16,45 +16,43 @@ print("first line of code");
|
||||
|
||||
function f1()
|
||||
{
|
||||
function f2()
|
||||
{
|
||||
return function f3() {
|
||||
a = 4;
|
||||
print("funciton f3");
|
||||
};
|
||||
}
|
||||
function f2()
|
||||
{
|
||||
function g1() {
|
||||
a = 4;
|
||||
return print("funciton f3");
|
||||
}
|
||||
|
||||
x =
|
||||
6;
|
||||
function g2() { }
|
||||
}
|
||||
|
||||
var
|
||||
x =
|
||||
6;
|
||||
}
|
||||
|
||||
function f4() {
|
||||
print("function f4");
|
||||
function func() {
|
||||
'use strict';
|
||||
'use stri' + 'ct';
|
||||
}
|
||||
|
||||
function foo()
|
||||
{
|
||||
print("function foo");
|
||||
var tmp = 4;
|
||||
f4();
|
||||
{
|
||||
print("Y");
|
||||
}
|
||||
}
|
||||
|
||||
print ("var cat");
|
||||
var cat = 'cat';
|
||||
|
||||
function test()
|
||||
{
|
||||
print("function test");
|
||||
foo();
|
||||
var a = 3;
|
||||
var b = 5;
|
||||
var c = a + b;
|
||||
global_var = c;
|
||||
return c;
|
||||
}
|
||||
;
|
||||
;
|
||||
|
||||
var
|
||||
x =
|
||||
1;
|
||||
x =
|
||||
1,
|
||||
y =
|
||||
2
|
||||
|
||||
test();
|
||||
test = function
|
||||
(
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user