Skip to content

Commit 29d0c87

Browse files
committed
dap-python: don't always plist-put :program
1 parent 178b520 commit 29d0c87

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dap-python.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,18 @@ overriden in individual `dap-python' launch configurations."
235235
;; :args "" -> :args nil -> {"args": null}; to handle that edge
236236
;; case, use the empty vector instead.
237237
(plist-put conf :args []))))
238-
(unless program
239-
(cl-remf conf :target-module)
240-
(cl-remf conf :program))
238+
(cl-remf conf :target-module)
239+
(cl-remf conf :program)
240+
(when program
241+
(plist-put conf :program program))
242+
241243
(unless module
242244
(cl-remf conf :module))
243245
(unless (plist-get conf :cwd)
244246
(cl-remf conf :cwd))
245247

246248
(plist-put conf :dap-server-path
247249
(list python-executable "-m" "debugpy.adapter"))))
248-
(plist-put conf :program program)
249250
conf))
250251

251252
(defun dap-python--normalize-args (args)

0 commit comments

Comments
 (0)