[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7edc244 063/215: wrong args in jdb invocation; issue #51.
From: |
Rocky Bernstein |
Subject: |
[elpa] master 7edc244 063/215: wrong args in jdb invocation; issue #51. Disable some jdb commands we |
Date: |
Sat, 30 Jul 2016 14:48:54 +0000 (UTC) |
branch: master
commit 7edc24482717d8e84683b969d386b644e75a9603
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
wrong args in jdb invocation; issue #51. Disable some jdb commands we
can't support.
---
realgud/common/cmds.el | 2 +-
realgud/debugger/jdb/init.el | 13 ++++++++++---
realgud/debugger/jdb/jdb.el | 3 +--
realgud/debugger/nodejs/nodejs.el | 1 -
test/.gitignore | 1 +
test/HelloWorld.java | 6 ++++++
6 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 8bbdd70..9ab344f 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -49,7 +49,7 @@ a shortcut for that key."
(setq cmd default-cmd-template))
)
(if (equal cmd "*not-implemented*")
- (message "Command %s is not implemented for this debugger" cmd)
+ (message "Command %s is not implemented for this debugger" cmd-name)
;; else
(progn
(realgud-command cmd arg no-record? frame-switch? realgud-prompts?)
diff --git a/realgud/debugger/jdb/init.el b/realgud/debugger/jdb/init.el
index 8962af1..0dac1dd 100644
--- a/realgud/debugger/jdb/init.el
+++ b/realgud/debugger/jdb/init.el
@@ -1,4 +1,4 @@
-;;; Copyright (C) 2014 Rocky Bernstein <address@hidden>
+;;; Copyright (C) 2014-2015 Rocky Bernstein <address@hidden>
(eval-when-compile (require 'cl))
(require 'load-relative)
@@ -193,8 +193,15 @@ backtrace listing.")
realgud-command-hash) realgud:jdb-command-hash)
(setf (gethash "backtrace" realgud:jdb-command-hash) "where")
-(setf (gethash "break" realgud:jdb-command-hash) "stop at %c:%l")
-(setf (gethash "clear" realgud:jdb-command-hash) "clear %c:%l")
+
+;; For these we need to deal with java classpaths.
+;; Also jdb is pretty sucky when it comes to giving an prompt that
+;; we can write a regex for. So we don't even know often when there
+;; is a prompt!
+(setf (gethash "break" realgud:jdb-command-hash) "*not-implemented*")
+(setf (gethash "clear" realgud:jdb-command-hash) "*not-implemented*")
+(setf (gethash "restart" realgud:jdb-command-hash) "*not-implemented*")
+
(setf (gethash "continue" realgud:jdb-command-hash) "cont")
(setf (gethash "finish" realgud:jdb-command-hash) "step up")
(setf (gethash "up" realgud:jdb-command-hash) "up\C-Mwhere")
diff --git a/realgud/debugger/jdb/jdb.el b/realgud/debugger/jdb/jdb.el
index c85621e..4a6b3fa 100644
--- a/realgud/debugger/jdb/jdb.el
+++ b/realgud/debugger/jdb/jdb.el
@@ -85,8 +85,7 @@ fringe and marginal icons.
(cl-remove-if 'nil (realgud:flatten parsed-args)))
)
(realgud:run-process "jdb" script-name parsed-cmd-args
- 'jdb-track-mode-hook
- 'realgud:jdb-minibuffer-history no-reset)
+ 'realgud:jdb-track-mode-hook no-reset)
)
)
diff --git a/realgud/debugger/nodejs/nodejs.el
b/realgud/debugger/nodejs/nodejs.el
index 59ad7e8..272b767 100644
--- a/realgud/debugger/nodejs/nodejs.el
+++ b/realgud/debugger/nodejs/nodejs.el
@@ -52,7 +52,6 @@ This should be an executable on your path, or an absolute
file name."
(declare-function nodejs-track-mode 'realgud-nodejs-track-mode)
(declare-function nodejs-query-cmdline 'realgud:nodejs-core)
(declare-function nodejs-parse-cmd-args 'realgud:nodejs-core)
-(declare-function realgud:run-process 'realgud:run)
;;;###autoload
(defun realgud:nodejs (&optional opt-cmd-line no-reset)
diff --git a/test/.gitignore b/test/.gitignore
index a350eb7..b616aaf 100644
--- a/test/.gitignore
+++ b/test/.gitignore
@@ -1,4 +1,5 @@
/*.elc
/*~
+/HelloWorld.class
/Makefile
/Makefile.in
diff --git a/test/HelloWorld.java b/test/HelloWorld.java
new file mode 100644
index 0000000..27a5485
--- /dev/null
+++ b/test/HelloWorld.java
@@ -0,0 +1,6 @@
+public class HelloWorld {
+ public static void main(String[] args) {
+ String msg = "Hello, World!";
+ System.out.println(msg); // Display the string.
+ }
+}
- [elpa] master 0514c68 069/215: Add melpa (nonstable) tag, (continued)
- [elpa] master 0514c68 069/215: Add melpa (nonstable) tag, Rocky Bernstein, 2016/07/30
- [elpa] master bdf317e 060/215: Try flycheck on this file., Rocky Bernstein, 2016/07/30
- [elpa] master 26fd0de 062/215: Show failure in message and in cmdbuf when we fail to invoke a debugger, Rocky Bernstein, 2016/07/30
- [elpa] master 3071b70 065/215: Try cask, Rocky Bernstein, 2016/07/30
- [elpa] master 3b0e42c 067/215: realgud-exec-shell: Make sure we switch to cmdbuf even when there is an, Rocky Bernstein, 2016/07/30
- [elpa] master 2a708cc 068/215: Error on realgud:cmdbuf-associate if you assocate a non-command buffer., Rocky Bernstein, 2016/07/30
- [elpa] master 26369c1 074/215: Typo, Rocky Bernstein, 2016/07/30
- [elpa] master 4a83877 064/215: perl5db alias messes up realgud-track-mode, so drop that name., Rocky Bernstein, 2016/07/30
- [elpa] master d3953ae 092/215: Fix bug in picking out short-key variable name introduced by recent changes, Rocky Bernstein, 2016/07/30
- [elpa] master 2facb99 075/215: init.el: break and clear command use %X rather than %l, Rocky Bernstein, 2016/07/30
- [elpa] master 7edc244 063/215: wrong args in jdb invocation; issue #51. Disable some jdb commands we,
Rocky Bernstein <=
- [elpa] master ca52896 071/215: A workaround: reinitialize shell mode when going out of realgud-track-mode, Rocky Bernstein, 2016/07/30
- [elpa] master eee3112 089/215: track.el: Allow us to separate stem variable name to get debugger config from debugger name. This will make it easier, Rocky Bernstein, 2016/07/30
- [elpa] master 1eda9a1 076/215: Partially addresses #61. Handling multiple breakpoints on a line still, Rocky Bernstein, 2016/07/30
- [elpa] master a216bf0 084/215: Last commit set wrong variables, Rocky Bernstein, 2016/07/30
- [elpa] master 1420ff1 096/215: ipdb: add hook for completion to initialization, Rocky Bernstein, 2016/07/30
- [elpa] master 924969d 095/215: ipdb: add tab completion, Rocky Bernstein, 2016/07/30
- [elpa] master 518dccd 070/215: Merge branch 'master' of github.com:rocky/emacs-dbgr, Rocky Bernstein, 2016/07/30
- [elpa] master 30398e1 099/215: ipdb: add test, Rocky Bernstein, 2016/07/30
- [elpa] master 6a5c71d 112/215: Merge pull request #80 from cpitclaudel/master, Rocky Bernstein, 2016/07/30
- [elpa] master 5bcb424 082/215: Add Kilian, Rocky Bernstein, 2016/07/30