Python debugger cleanup (#3635)

- Rename scopes to scope
- Make functions private
- Reorder some functions

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-04-02 17:57:23 +02:00
committed by GitHub
parent 1bd1a36a81
commit 28f2772d9c
12 changed files with 264 additions and 264 deletions
+2 -2
View File
@@ -4,14 +4,14 @@ n
eval_at 0 b
b do_eval_at.js:20
n
scopes
scope
eval_at 0 b
eval_at 1 b
eval_at 0 b=20
eval_at 1 b=100
n
eval_at 0 a
scopes
scope
eval_at 0 b
eval_at -1 b
eval_at 65536 b
+2 -2
View File
@@ -12,7 +12,7 @@ Stopped at tests/debugger/do_eval_at.js:23
Breakpoint 1 at tests/debugger/do_eval_at.js:20 (in f() at line:17, col:1)
(jerry-debugger) n
Stopped at breakpoint:1 tests/debugger/do_eval_at.js:20 (in f() at line:17, col:1)
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | local
1 | global
@@ -28,7 +28,7 @@ level | type
Stopped at tests/debugger/do_eval_at.js:25
(jerry-debugger) eval_at 0 a
23
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | global
(jerry-debugger) eval_at 0 b
+5 -5
View File
@@ -4,10 +4,10 @@ Stopped at tests/debugger/do_help.js:15
Documented commands (type help <topic>):
========================================
abort c e finish n s step
b continue eval help next scopes throw
backtrace delete eval_at list quit scroll variables
break display exception memstats res source
bt dump f ms restart src
EOF bt dump f ms restart src
abort c e finish n s step
b continue eval help next scope throw
backtrace delete eval_at list quit scroll variables
break display exception memstats res source
(jerry-debugger) quit
+19
View File
@@ -0,0 +1,19 @@
scope
b do_scope.js:22
c
scope
c
scope
b do_scope.js:28
c
scope
b do_scope.js:31
c
scope
b do_scope.js:33
c
scope
b do_scope.js:35
c
scope
c
+63
View File
@@ -0,0 +1,63 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_scope.js:15
(jerry-debugger) scope
level | type
0 | global
(jerry-debugger) b do_scope.js:22
Breakpoint 1 at tests/debugger/do_scope.js:22 (in f() at line:17, col:1)
(jerry-debugger) c
Exception throw detected (to disable automatic stop type exception 0)
Exception hint: error
Stopped at tests/debugger/do_scope.js:19 (in f() at line:17, col:1)
(jerry-debugger) scope
level | type
0 | local
1 | global
(jerry-debugger) c
Stopped at breakpoint:1 tests/debugger/do_scope.js:22 (in f() at line:17, col:1)
(jerry-debugger) scope
level | type
0 | catch
1 | local
2 | global
(jerry-debugger) b do_scope.js:28
Breakpoint 2 at tests/debugger/do_scope.js:28 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:2 tests/debugger/do_scope.js:28 (in function() at line:27, col:4)
(jerry-debugger) scope
level | type
0 | local
1 | closure
2 | global
(jerry-debugger) b do_scope.js:31
Breakpoint 3 at tests/debugger/do_scope.js:31 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:3 tests/debugger/do_scope.js:31 (in function() at line:27, col:4)
(jerry-debugger) scope
level | type
0 | with
1 | local
2 | closure
3 | global
(jerry-debugger) b do_scope.js:33
Breakpoint 4 at tests/debugger/do_scope.js:33 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:4 tests/debugger/do_scope.js:33 (in function() at line:27, col:4)
(jerry-debugger) scope
level | type
0 | with
1 | with
2 | local
3 | closure
4 | global
(jerry-debugger) b do_scope.js:35
Breakpoint 5 at tests/debugger/do_scope.js:35 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:5 tests/debugger/do_scope.js:35 (in function() at line:27, col:4)
(jerry-debugger) scope
level | type
0 | with
1 | local
2 | closure
3 | global
(jerry-debugger) c
-19
View File
@@ -1,19 +0,0 @@
scopes
b do_scopes.js:22
c
scopes
c
scopes
b do_scopes.js:28
c
scopes
b do_scopes.js:31
c
scopes
b do_scopes.js:33
c
scopes
b do_scopes.js:35
c
scopes
c
-63
View File
@@ -1,63 +0,0 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_scopes.js:15
(jerry-debugger) scopes
level | type
0 | global
(jerry-debugger) b do_scopes.js:22
Breakpoint 1 at tests/debugger/do_scopes.js:22 (in f() at line:17, col:1)
(jerry-debugger) c
Exception throw detected (to disable automatic stop type exception 0)
Exception hint: error
Stopped at tests/debugger/do_scopes.js:19 (in f() at line:17, col:1)
(jerry-debugger) scopes
level | type
0 | local
1 | global
(jerry-debugger) c
Stopped at breakpoint:1 tests/debugger/do_scopes.js:22 (in f() at line:17, col:1)
(jerry-debugger) scopes
level | type
0 | catch
1 | local
2 | global
(jerry-debugger) b do_scopes.js:28
Breakpoint 2 at tests/debugger/do_scopes.js:28 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:2 tests/debugger/do_scopes.js:28 (in function() at line:27, col:4)
(jerry-debugger) scopes
level | type
0 | local
1 | closure
2 | global
(jerry-debugger) b do_scopes.js:31
Breakpoint 3 at tests/debugger/do_scopes.js:31 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:3 tests/debugger/do_scopes.js:31 (in function() at line:27, col:4)
(jerry-debugger) scopes
level | type
0 | with
1 | local
2 | closure
3 | global
(jerry-debugger) b do_scopes.js:33
Breakpoint 4 at tests/debugger/do_scopes.js:33 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:4 tests/debugger/do_scopes.js:33 (in function() at line:27, col:4)
(jerry-debugger) scopes
level | type
0 | with
1 | with
2 | local
3 | closure
4 | global
(jerry-debugger) b do_scopes.js:35
Breakpoint 5 at tests/debugger/do_scopes.js:35 (in function() at line:27, col:4)
(jerry-debugger) c
Stopped at breakpoint:5 tests/debugger/do_scopes.js:35 (in function() at line:27, col:4)
(jerry-debugger) scopes
level | type
0 | with
1 | local
2 | closure
3 | global
(jerry-debugger) c
+5 -5
View File
@@ -1,27 +1,27 @@
scopes
scope
variables
variables 1
variables 0
b tests/debugger/do_variables.js:20
c
scopes
scope
variables 0
variables 1
variables 2
b tests/debugger/do_variables.js:30
c
scopes
scope
variables 1
variables 0
b tests/debugger/do_variables.js:33
c
c
scopes
scope
variables 0
variables 1
b tests/debugger/do_variables.js:50
c
scopes
scope
variables 0
variables 1
variables 2
+5 -5
View File
@@ -1,6 +1,6 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_variables.js:15
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | global
(jerry-debugger) variables
@@ -29,7 +29,7 @@ assert | Function |
Breakpoint 1 at tests/debugger/do_variables.js:20 (in function() at line:19, col:10)
(jerry-debugger) c
Stopped at breakpoint:1 tests/debugger/do_variables.js:20 (in function() at line:19, col:10)
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | local
1 | closure
@@ -56,7 +56,7 @@ assert | Function |
Breakpoint 2 at tests/debugger/do_variables.js:30 (in f() at line:28, col:1)
(jerry-debugger) c
Stopped at breakpoint:2 tests/debugger/do_variables.js:30 (in f() at line:28, col:1)
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | local
1 | global
@@ -87,7 +87,7 @@ Exception hint: error
Stopped at breakpoint:2 tests/debugger/do_variables.js:30 (in f() at line:28, col:1)
(jerry-debugger) c
Stopped at breakpoint:3 tests/debugger/do_variables.js:33 (in f() at line:28, col:1)
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | catch
1 | local
@@ -106,7 +106,7 @@ c | undefined | undefined
Breakpoint 4 at tests/debugger/do_variables.js:50 (in function() at line:46, col:4)
(jerry-debugger) c
Stopped at breakpoint:4 tests/debugger/do_variables.js:50 (in function() at line:46, col:4)
(jerry-debugger) scopes
(jerry-debugger) scope
level | type
0 | with
1 | local