JerryDebugger breakpoint system rework (#1908)
Reworking the python JerryDebugger breakpoint system. JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
committed by
Zoltan Herczeg
parent
89015a6119
commit
dbfb0170c1
@@ -8,17 +8,19 @@ Breakpoint 2 at tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
Breakpoint 3 at tests/debugger/do_break.js:33 (in f() at line:31, col:3)
|
||||
Breakpoint 4 at tests/debugger/do_break.js:45 (in f() at line:43, col:1)
|
||||
(jerry-debugger) list
|
||||
1: tests/debugger/do_break.js:51
|
||||
2: tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
3: tests/debugger/do_break.js:33 (in f() at line:31, col:3)
|
||||
4: tests/debugger/do_break.js:45 (in f() at line:43, col:1)
|
||||
=== Active breakpoints ===
|
||||
1: tests/debugger/do_break.js:51
|
||||
2: tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
3: tests/debugger/do_break.js:33 (in f() at line:31, col:3)
|
||||
4: tests/debugger/do_break.js:45 (in f() at line:43, col:1)
|
||||
(jerry-debugger) c
|
||||
Stopped at breakpoint:1 tests/debugger/do_break.js:51
|
||||
(jerry-debugger) delete 1
|
||||
(jerry-debugger) list
|
||||
2: tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
3: tests/debugger/do_break.js:33 (in f() at line:31, col:3)
|
||||
4: tests/debugger/do_break.js:45 (in f() at line:43, col:1)
|
||||
=== Active breakpoints ===
|
||||
2: tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
3: tests/debugger/do_break.js:33 (in f() at line:31, col:3)
|
||||
4: tests/debugger/do_break.js:45 (in f() at line:43, col:1)
|
||||
(jerry-debugger) c
|
||||
Stopped at breakpoint:2 tests/debugger/do_break.js:36 (in test() at line:20, col:1)
|
||||
(jerry-debugger) continue
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
next
|
||||
b do_delete.js:17
|
||||
b do_delete.js:21
|
||||
y
|
||||
b do_delete.js:19
|
||||
b do_delete.js:18
|
||||
list
|
||||
@@ -8,3 +9,4 @@ delete 2
|
||||
delete 3
|
||||
list
|
||||
c
|
||||
c
|
||||
|
||||
@@ -5,17 +5,25 @@ Stopped at tests/debugger/do_delete.js:17
|
||||
(jerry-debugger) b do_delete.js:17
|
||||
Breakpoint 1 at tests/debugger/do_delete.js:17
|
||||
(jerry-debugger) b do_delete.js:21
|
||||
Breakpoint not found
|
||||
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
|
||||
Pending breakpoint at do_delete.js:21
|
||||
(jerry-debugger) b do_delete.js:19
|
||||
Breakpoint 2 at tests/debugger/do_delete.js:19
|
||||
Breakpoint 3 at tests/debugger/do_delete.js:19
|
||||
(jerry-debugger) b do_delete.js:18
|
||||
Breakpoint 3 at tests/debugger/do_delete.js:18
|
||||
Breakpoint 4 at tests/debugger/do_delete.js:18
|
||||
(jerry-debugger) list
|
||||
1: tests/debugger/do_delete.js:17
|
||||
2: tests/debugger/do_delete.js:19
|
||||
3: tests/debugger/do_delete.js:18
|
||||
=== Active breakpoints ===
|
||||
1: tests/debugger/do_delete.js:17
|
||||
3: tests/debugger/do_delete.js:19
|
||||
4: tests/debugger/do_delete.js:18
|
||||
=== Pending breakpoints ===
|
||||
2: do_delete.js:21 (pending)
|
||||
(jerry-debugger) delete 2
|
||||
(jerry-debugger) delete 3
|
||||
(jerry-debugger) list
|
||||
1: tests/debugger/do_delete.js:17
|
||||
=== Active breakpoints ===
|
||||
1: tests/debugger/do_delete.js:17
|
||||
4: tests/debugger/do_delete.js:18
|
||||
(jerry-debugger) c
|
||||
Stopped at breakpoint:4 tests/debugger/do_delete.js:18
|
||||
(jerry-debugger) c
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
break do_delete_all.js:17
|
||||
b do_delete_all.js:18
|
||||
b do_delete_all.js:21
|
||||
b do_delete_all:350
|
||||
y
|
||||
b do_delete_all:37
|
||||
y
|
||||
list
|
||||
delete all
|
||||
next
|
||||
|
||||
@@ -6,10 +6,20 @@ Breakpoint 1 at tests/debugger/do_delete_all.js:17
|
||||
Breakpoint 2 at tests/debugger/do_delete_all.js:18
|
||||
(jerry-debugger) b do_delete_all.js:21
|
||||
Breakpoint 3 at tests/debugger/do_delete_all.js:21 (in delete_test() at line:20, col:1)
|
||||
(jerry-debugger) b do_delete_all:350
|
||||
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
|
||||
Pending breakpoint at do_delete_all:350
|
||||
(jerry-debugger) b do_delete_all:37
|
||||
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
|
||||
Pending breakpoint at do_delete_all:37
|
||||
(jerry-debugger) list
|
||||
1: tests/debugger/do_delete_all.js:17
|
||||
2: tests/debugger/do_delete_all.js:18
|
||||
3: tests/debugger/do_delete_all.js:21 (in delete_test() at line:20, col:1)
|
||||
=== Active breakpoints ===
|
||||
1: tests/debugger/do_delete_all.js:17
|
||||
2: tests/debugger/do_delete_all.js:18
|
||||
3: tests/debugger/do_delete_all.js:21 (in delete_test() at line:20, col:1)
|
||||
=== Pending breakpoints ===
|
||||
4: do_delete_all:350 (pending)
|
||||
5: do_delete_all:37 (pending)
|
||||
(jerry-debugger) delete all
|
||||
(jerry-debugger) next
|
||||
Stopped at tests/debugger/do_delete_all.js:16
|
||||
|
||||
@@ -4,9 +4,8 @@ Stopped at tests/debugger/do_help.js:15
|
||||
|
||||
Documented commands (type help <topic>):
|
||||
========================================
|
||||
b c dump fbreak ms quit step
|
||||
backtrace continue e help n s
|
||||
break delete eval list next source
|
||||
bt display exception memstats pendingdel src
|
||||
b bt delete e help ms quit src
|
||||
backtrace c display eval list n s step
|
||||
break continue dump exception memstats next source
|
||||
|
||||
(jerry-debugger) quit
|
||||
|
||||
@@ -5,6 +5,7 @@ Breakpoint 1 at tests/debugger/do_list.js:18
|
||||
(jerry-debugger) b do_list.js:19
|
||||
Breakpoint 2 at tests/debugger/do_list.js:19
|
||||
(jerry-debugger) list
|
||||
1: tests/debugger/do_list.js:18
|
||||
2: tests/debugger/do_list.js:19
|
||||
=== Active breakpoints ===
|
||||
1: tests/debugger/do_list.js:18
|
||||
2: tests/debugger/do_list.js:19
|
||||
(jerry-debugger) quit
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
fbreak f
|
||||
list pending
|
||||
break f
|
||||
y
|
||||
list
|
||||
n
|
||||
n
|
||||
c
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
Connecting to: localhost:5001
|
||||
Stopped at tests/debugger/do_pending_breakpoints.js:15
|
||||
(jerry-debugger) fbreak f
|
||||
Breakpoint not found
|
||||
Pending breakpoint added
|
||||
(jerry-debugger) list pending
|
||||
0: f
|
||||
(jerry-debugger) break f
|
||||
No breakpoint found, do you want to add a pending breakpoint? (y or [n])
|
||||
Pending breakpoint at f()
|
||||
(jerry-debugger) list
|
||||
=== Pending breakpoints ===
|
||||
1: f() (pending)
|
||||
(jerry-debugger) n
|
||||
Stopped at tests/debugger/do_pending_breakpoints.js:17
|
||||
(jerry-debugger) n
|
||||
Breakpoint 1 at <unknown>:1 (in f() at line:1, col:1)
|
||||
Breakpoint 2 at <unknown>:1 (in f() at line:1, col:1)
|
||||
Stopped at tests/debugger/do_pending_breakpoints.js:19
|
||||
(jerry-debugger) c
|
||||
Stopped at breakpoint:1 <unknown>:1 (in f() at line:1, col:1)
|
||||
Stopped at breakpoint:2 <unknown>:1 (in f() at line:1, col:1)
|
||||
(jerry-debugger) c
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
fbreak do_pending_breakpoints.js:50
|
||||
fbreak do_pending_breakpoints.js:235532
|
||||
fbreak do_pending_breakpoints.js:2145
|
||||
n
|
||||
list pending
|
||||
c
|
||||
@@ -1,18 +0,0 @@
|
||||
Connecting to: localhost:5001
|
||||
Stopped at tests/debugger/do_pending_list.js:15
|
||||
(jerry-debugger) fbreak do_pending_breakpoints.js:50
|
||||
Breakpoint not found
|
||||
Pending breakpoint added
|
||||
(jerry-debugger) fbreak do_pending_breakpoints.js:235532
|
||||
Breakpoint not found
|
||||
Pending breakpoint added
|
||||
(jerry-debugger) fbreak do_pending_breakpoints.js:2145
|
||||
Breakpoint not found
|
||||
Pending breakpoint added
|
||||
(jerry-debugger) n
|
||||
Stopped at tests/debugger/do_pending_list.js:17
|
||||
(jerry-debugger) list pending
|
||||
0: 50
|
||||
1: 235532
|
||||
2: 2145
|
||||
(jerry-debugger) c
|
||||
@@ -1,20 +0,0 @@
|
||||
// Copyright JS Foundation and other contributors, http://js.foundation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
print("pending breakpoints list");
|
||||
|
||||
var x = 10;
|
||||
var y = 10;
|
||||
var pi = 3.14;
|
||||
var z = x + y;
|
||||
Reference in New Issue
Block a user