[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape af5dd1eee8 115/123: Fixup of set variables
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape af5dd1eee8 115/123: Fixup of set variables |
Date: |
Tue, 5 Dec 2023 03:58:06 -0500 (EST) |
branch: externals/dape
commit af5dd1eee8b04ff9d7dc0150fbe8ecdb6dbe3b21
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fixup of set variables
---
dape.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/dape.el b/dape.el
index 2415a7147b..376388a63e 100644
--- a/dape.el
+++ b/dape.el
@@ -1185,22 +1185,26 @@ See `dape--callback' for expected CB signature."
"Set VARIABLE VALUE with REF by request to PROCESS.
REF should refer to VARIABLE container.
See `dape--callback' for expected CB signature."
- (if (and (plist-get dape--capabilities :supportsSetExpression)
- (not (numberp ref)))
+ (cond
+ ((and (plist-get dape--capabilities :supportsSetExpression)
+ (or (plist-get variable :evaluateName)
+ (not (numberp ref))))
(dape-request process
"setExpression"
(list :frameId (plist-get (dape--current-stack-frame) :id)
:expression (or (plist-get variable :evaluateName)
(plist-get variable :name))
:value value)
- cb)
+ cb))
+ ((numberp ref)
(dape-request process
"setVariable"
(list
:variablesReference ref
:name (plist-get variable :name)
:value value)
- cb)))
+ cb))
+ ((error "Adapter does not support setting variable from watch."))))
(defun dape--scopes (process stack-frame cb)
"Send scopes request to PROCESS for STACK-FRAME plist.
@@ -2769,10 +2773,14 @@ Updates from CURRENT-STACK-FRAME STACK-FRAMES."
dape--info-ref
dape--info-variable
(read-string
- (format "Set %s value: " (plist-get dape--info-variable :name))
+ (format "Set value of %s `%s' = "
+ (plist-get dape--info-variable :type)
+ (plist-get dape--info-variable :name))
(or (plist-get dape--info-variable :value)
(plist-get dape--info-variable :result))))
- (dape--update process)))
+ (cond
+ (success (dape--update process))
+ (t (dape--repl-insert-text (format "%s\n" msg))))))
(dape--info-buffer-map dape-info-variable-value-map dape-info-variable-edit)
- [elpa] externals/dape b8a69409da 049/123: Print stopped description, (continued)
- [elpa] externals/dape b8a69409da 049/123: Print stopped description, ELPA Syncer, 2023/12/05
- [elpa] externals/dape d6a6a2a75e 051/123: Clarify codelldb adapter example and fix typo #4, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3a31e53782 058/123: Fix sticky breakpoint issue, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a529cbea06 062/123: Fix widget rendering when adapter exited, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3ab98f24f6 065/123: Fix typo in readme cppdbg adapter section #3, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 77fa220765 069/123: Fix interactive commands in REPL #11, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4452bc68a4 085/123: Respect :expensive vars in update fetch, ELPA Syncer, 2023/12/05
- [elpa] externals/dape bec3e487f2 095/123: Send request response for runInTerminal and startDebugging, ELPA Syncer, 2023/12/05
- [elpa] externals/dape fad3c663e7 111/123: Update mode line face, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 68799e29a1 113/123: Fix screenshots in readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape af5dd1eee8 115/123: Fixup of set variables,
ELPA Syncer <=
- [elpa] externals/dape 204012b31e 086/123: Rework parsing, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a9f68bf701 091/123: Remove pretty printing of dape--debug io prints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 7f9700d2b6 092/123: Use prin1 formatting of objects in dape-debug, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cbfebf84e3 101/123: Improve REPL usage, enable REPL without any stopped threads #15, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 44544b3caf 108/123: Improve ensure fn for js-debug, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cc2188da0d 109/123: Improve relative file name in `dape-info' buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 34e79aec3d 120/123: Update readme with new breakpoint, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a55f8d7196 076/123: Rework `dape--read-config', ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3149577a9e 083/123: Use dape--repl-prompt var, ELPA Syncer, 2023/12/05
- [elpa] externals/dape e34a87dd67 097/123: Handle capabilities event, ELPA Syncer, 2023/12/05