[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape bda32e7780 096/123: Fix issue of resetting start-d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape bda32e7780 096/123: Fix issue of resetting start-debugging args #15 |
Date: |
Tue, 5 Dec 2023 03:58:04 -0500 (EST) |
branch: externals/dape
commit bda32e778009f0e1303607a45f9f56d2e3679ce8
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fix issue of resetting start-debugging args #15
If launch callback was called in the middle of reconnecting as part of
a start-debugging flow, start-debugging args where nil-ed.
---
dape.el | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/dape.el b/dape.el
index f45a914705..5948f25999 100644
--- a/dape.el
+++ b/dape.el
@@ -727,16 +727,19 @@ See `dape--callback' for expected function signature."
(defun dape--launch-or-attach (process)
"Send launch or attach request to PROCESS.
Uses `dape--config' to derive type and to construct request."
- (dape-request process
- (or (plist-get dape--config :request) "launch")
- (append
- (cl-loop for (key value) on dape--config by 'cddr
- when (keywordp key)
- append (list key value))
- (plist-get dape--config 'start-debugging))
- (dape--callback
- (when (plist-get dape--config 'start-debugging)
- (plist-put dape--config 'start-debugging nil)))))
+ (let ((start-debugging (plist-get dape--config 'start-debugging)))
+ (dape-request process
+ (or (plist-get dape--config :request) "launch")
+ (append
+ (cl-loop for (key value) on dape--config by 'cddr
+ when (keywordp key)
+ append (list key value))
+ start-debugging)
+ ;; nil start-debugging only if started as a part of
+ ;; a start-debugging request
+ (when start-debugging
+ (dape--callback
+ (plist-put dape--config 'start-debugging nil))))))
(defun dape--set-breakpoints (process buffer breakpoints &optional cb)
"Set BREAKPOINTS in BUFFER by send setBreakpoints request to PROCESS.
@@ -1044,6 +1047,10 @@ Starts a new process to run process to be debugged."
Starts a new process as per request of the debug adapter."
(dape--response process (symbol-name command) seq t)
(setq dape--parent-process dape--process)
+ ;; js-vscode leaves launch request un-answered
+ (when (hash-table-p dape--timers)
+ (dolist (timer (hash-table-values dape--timers))
+ (cancel-timer timer)))
(dape (plist-put dape--config
'start-debugging
(plist-get arguments :configuration))))
- [elpa] externals/dape a23bcb8e66 040/123: Add naively inline variable overlays, (continued)
- [elpa] externals/dape a23bcb8e66 040/123: Add naively inline variable overlays, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2a478560e9 052/123: Move breakpoint indications into the buffer margin #2, ELPA Syncer, 2023/12/05
- [elpa] externals/dape beaaca9c77 053/123: Fix missing server std out/err in debug buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ad8d8797fa 054/123: Fix missing newline for "stopped" event description, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 9eebb3c246 055/123: Fix missing newline from compilation failed msg, ELPA Syncer, 2023/12/05
- [elpa] externals/dape d6d79670f7 056/123: Slight rework of dape--read-config, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cbbb807604 050/123: Fix type in readme cppdbg adapter example #3, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ae98178a3e 064/123: Improve repl when adapter process non live, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1d0cdcc466 070/123: Fix dape.el header #13, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4a97094b10 077/123: Kill adapter on terminate event, ELPA Syncer, 2023/12/05
- [elpa] externals/dape bda32e7780 096/123: Fix issue of resetting start-debugging args #15,
ELPA Syncer <=
- [elpa] externals/dape ba63e50434 106/123: Batteries included, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 87c91273ec 107/123: Add error message on launch/attach fail, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2620078517 117/123: Improve error message on failed restart, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 0f545358e2 118/123: Fix strange usage of add to watch in scope buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape c3fb0ebc32 075/123: Remove `dape--name', ELPA Syncer, 2023/12/05
- [elpa] externals/dape bc17ae80ff 078/123: Fix debuggee cleanup, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 30b2695154 087/123: Cancel timeout timers on process kill, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 41cfcc3ce3 089/123: Variety of dape--tree-widget performance "hacks", ELPA Syncer, 2023/12/05
- [elpa] externals/dape b7c578992d 094/123: Fix unnecessary newline in stopped repl text, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4c990a5769 110/123: Rename `dape-breakpoint-*' functions for discoverability, ELPA Syncer, 2023/12/05