Permalink
Browse files

New function kite-restart-frame

  • Loading branch information...
1 parent 4ac75f1 commit ca5807e0f99f6f3cc9d25c8fe0c4a1539a0bbc6b @jscheid committed Feb 4, 2013
Showing with 16 additions and 0 deletions.
  1. +15 −0 kite-debug.el
  2. +1 −0 kite-files.el
View
@@ -448,6 +448,21 @@ existing breakpoints in newly visited buffers."
'face
'kite-script-breakpoint-face))))))))
+(defun kite-restart-frame ()
+ "Restart the currently selected call frame. Causes
+`Debugger.restartFrame' to be sent to the remote debugger."
+ (interactive)
+ (kite-send
+ "Debugger.restartFrame"
+ :params
+ (list
+ :callFrameId
+ (plist-get
+ (elt
+ (kite-session-call-frames kite-session)
+ (kite-session-current-call-frame-index kite-session))
+ :callFrameId))))
+
(defun kite-set-script-source ()
"Set the contents of the kite script overlay at point as the
new source for the corresponding script. Causes
View
@@ -126,6 +126,7 @@ files."
(define-key map (kbd "C-c c") 'kite-continue-to-location)
(define-key map (kbd "C-c t") 'kite-set-breakpoint-at-point)
(define-key map (kbd "C-c C-c") 'kite-set-script-source)
+ (define-key map (kbd "C-c C-r") 'kite-restart-frame)
map)
"Local keymap for the `kite-script-mode' minor mode")

0 comments on commit ca5807e

Please sign in to comment.