[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6d57325 4/8: Add info-breakpoint; track loc regexp changes
From: |
Rocky Bernstein |
Subject: |
[elpa] master 6d57325 4/8: Add info-breakpoint; track loc regexp changes |
Date: |
Mon, 20 May 2019 07:33:33 -0400 (EDT) |
branch: master
commit 6d573257a3f100aff766163e5698fa22c45a463c
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Add info-breakpoint; track loc regexp changes
and add "clear" comamnd too.
---
realgud-node-inspect/init.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/realgud-node-inspect/init.el b/realgud-node-inspect/init.el
index 5d2cf71..af3901d 100644
--- a/realgud-node-inspect/init.el
+++ b/realgud-node-inspect/init.el
@@ -35,7 +35,7 @@ realgud-loc-pat struct")
(setf (gethash "loc" realgud:node-inspect-pat-hash)
(make-realgud-loc-pat
:regexp (format
- "\\(?:%s\\)*\\(?:break\\|exception\\) in %s:%s"
+ "\\(?:%s\\)*\\(?:break\\|exception\\|Break on start\\) in
\\(?:file://\\)?%s:%s"
realgud:js-term-escape "\\([^:]+\\)"
realgud:regexp-captured-num)
:file-group 1
@@ -83,7 +83,7 @@ realgud-loc-pat struct")
(defconst realgud:node-inspect-frame-start-regexp "\\(?:^\\|\n\\)\\(?:#\\)")
(defconst realgud:node-inspect-frame-num-regexp realgud:regexp-captured-num)
(defconst realgud:node-inspect-frame-module-regexp "[^ \t\n]+")
-(defconst realgud:node-inspect-frame-file-regexp "[^ \t\n]+")
+(defconst realgud:node-inspect-frame-file-regexp "\\(?:file://\)?[^ \t\n]+")
;; Regular expression that describes a node-inspect location generally shown
;; Regular expression that describes a debugger "backtrace" command line.
@@ -157,15 +157,18 @@ the node-inspect command to use, like 'out'.")
realgud-command-hash)
realgud:node-inspect-command-hash)
-(setf (gethash "backtrace" realgud:node-inspect-command-hash) "backtrace")
-(setf (gethash "break" realgud:node-inspect-command-hash)
+(setf (gethash "backtrace" realgud:node-inspect-command-hash)
"backtrace")
+(setf (gethash "break" realgud:node-inspect-command-hash)
"setBreakpoint('%X',%l)")
-(setf (gethash "continue" realgud:node-inspect-command-hash) "cont")
-(setf (gethash "kill" realgud:node-inspect-command-hash) "kill")
-(setf (gethash "quit" realgud:node-inspect-command-hash) "")
-(setf (gethash "finish" realgud:node-inspect-command-hash) "out")
-(setf (gethash "shell" realgud:node-inspect-command-hash) "repl")
-(setf (gethash "eval" realgud:node-inspect-command-hash) "exec('%s')")
+(setf (gethash "clear" realgud:node-inspect-command-hash)
+ "clearBreakpoint('%X', %l)")
+(setf (gethash "continue" realgud:node-inspect-command-hash) "cont")
+(setf (gethash "eval" realgud:node-inspect-command-hash)
"exec('%s')")
+(setf (gethash "finish" realgud:node-inspect-command-hash) "out")
+(setf (gethash "info-breakpoints" realgud:node-inspect-command-hash)
"breakpoints")
+(setf (gethash "kill" realgud:node-inspect-command-hash) "kill")
+(setf (gethash "quit" realgud:node-inspect-command-hash) ".exit")
+(setf (gethash "shell" realgud:node-inspect-command-hash) "repl")
;; We need aliases for step and next because the default would
;; do step 1 and node-inspect doesn't handle this. And if it did,
- [elpa] master updated (c32288b -> 0d00b35), Rocky Bernstein, 2019/05/20
- [elpa] master fe811c0 5/8: Fix up some backtrace regexps, Rocky Bernstein, 2019/05/20
- [elpa] master 6d57325 4/8: Add info-breakpoint; track loc regexp changes,
Rocky Bernstein <=
- [elpa] master b6c898d 6/8: Small new package-lint thing., Rocky Bernstein, 2019/05/20
- [elpa] master 73483ba 1/8: Preparation for MELPA release, Rocky Bernstein, 2019/05/20
- [elpa] master 1cec9ae 7/8: Copyright to FSF, Rocky Bernstein, 2019/05/20
- [elpa] master 32817fe 2/8: node-inspect -> realgud-node-inspect ..., Rocky Bernstein, 2019/05/20
- [elpa] master 50926ec 3/8: Add realgud:js-goto-file-line, Rocky Bernstein, 2019/05/20
- [elpa] master 0d00b35 8/8: Add 'packages/realgud-node-inspect/' from commit '1cec9aecba5d31dfa419d7e73a38f101c3447a21', Rocky Bernstein, 2019/05/20