Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions kite-debug.el
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,25 @@ is available, go to the original location instead."
((string= (url-type url-parts) "file")
(find-file (url-filename url-parts))
(after-load))
(kite-local-root
(find-file (kite-find-local-file url-parts))
(after-load))
(t
(switch-to-buffer
(or (get-buffer url)
(kite--create-remote-script-buffer
script-info (function after-load)))))))))

(setq kite-local-root "~/workspace/prosjekthotell")

(defun kite-find-local-file (url-parts)
"Returns the local path of a debugged file if some var is set"
(interactive)
(progn
(cond (kite-local-root (concat kite-local-root (car (url-path-and-query url-parts))))
(t (url-filename url-parts)))))


(defun kite--debug-stats-mode-line-indicator ()
"Returns a string to be displayed in the mode line"
(concat " (" (kite-session-debugger-state kite-session) ")"))
Expand All @@ -452,6 +465,7 @@ bound to `kite-session', or nil if not found."
(kite-session-script-infos kite-session))
result))


(defun kite-visit-stack-frame (stack-frame-plist)
"Visit the source file corresponding to the stack frame given
by STACK-FRAME-PLIST, which should be a plist with at least the
Expand Down