Skip to content

Commit

Permalink
Use stdout from adapter in repl
Browse files Browse the repository at this point in the history
Adds output from dlv to console
  • Loading branch information
svaante committed Dec 30, 2023
1 parent 7a1a44b commit 9ecd6ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dape-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ Helper for `dape-test--with-files'."
(string-match-p "\\*dape-.+\\*"
(buffer-name buffer)))
(buffer-list))))
(dape-test--should
(not (process-list)))
(advice-remove 'yes-or-no-p 'always-yes)
;; clean up files
(delete-directory temp-dir t)))))
Expand Down
14 changes: 10 additions & 4 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -1691,11 +1691,17 @@ Starts a new process as per request of the debug adapter."
:buffer buffer
:sentinel 'dape--process-sentinel
:filter (lambda (_process string)
(dape--debug 'std-server
"Server stdout:\n%s"
string))
(dape--repl-message string))
:noquery t
:file-handler t))
:file-handler t
:stderr
(make-pipe-process
:name "Dape adapter stderr"
:filter (lambda (_process string)
(dape--debug 'std-server
"Server stdout:\n%s"
string))
:buffer buffer)))
(dape--debug 'info "Server process started %S"
(process-command dape--server-process))
;; FIXME Why do I need this?
Expand Down

0 comments on commit 9ecd6ba

Please sign in to comment.