{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/170","labels_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/170/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/170/events","html_url":"https://github.com/clojure-emacs/cider-nrepl/pull/170","id":61579901,"number":170,"title":"Debugging in Cider","user":{"login":"Bruce-Connor","id":453029,"avatar_url":"https://avatars.githubusercontent.com/u/453029?v=3","gravatar_id":"","url":"https://api.github.com/users/Bruce-Connor","html_url":"https://github.com/Bruce-Connor","followers_url":"https://api.github.com/users/Bruce-Connor/followers","following_url":"https://api.github.com/users/Bruce-Connor/following{/other_user}","gists_url":"https://api.github.com/users/Bruce-Connor/gists{/gist_id}","starred_url":"https://api.github.com/users/Bruce-Connor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bruce-Connor/subscriptions","organizations_url":"https://api.github.com/users/Bruce-Connor/orgs","repos_url":"https://api.github.com/users/Bruce-Connor/repos","events_url":"https://api.github.com/users/Bruce-Connor/events{/privacy}","received_events_url":"https://api.github.com/users/Bruce-Connor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-14T12:09:28Z","updated_at":"2015-03-18T09:31:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/pulls/170","html_url":"https://github.com/clojure-emacs/cider-nrepl/pull/170","diff_url":"https://github.com/clojure-emacs/cider-nrepl/pull/170.diff","patch_url":"https://github.com/clojure-emacs/cider-nrepl/pull/170.patch"},"body":"This goes with clojure-emacs/cider#1019.\r\n\r\n![cider-debug](https://cloud.githubusercontent.com/assets/453029/6656830/6c9dd400-cb15-11e4-9231-55e0c943c714.gif)\r\n\r\n### What is this?\r\n\r\nAn edebug-like debugger for cider. You can:\r\n\r\n1. step through the code,\r\n2. quit execution, \r\n3. and inject values.\r\n\r\n### How to use it\r\n\r\n1. Do the usual`M-x cider-jackin`, but make sure you're using clojure >= 1.6. For instance,\r\n\r\n        (setq cider-lein-parameters \"with-profile +1.6 repl :headless\")\r\n\r\n2. Call `M-x cider-debug-defun-at-point` with point inside a top-level sexp.\r\n\r\nFor a regular sexp this will immediately start debugging. If the top-level sexp was a `defn`, it will start debugging when you run the function.\r\n\r\nOnce you're in the debugger you can hit:\r\n\r\n- **n**: next step\r\n- **c**: continue execution\r\n- **i**: inject value\r\n\r\n### TODO\r\n\r\n- keybind and menu-bar entry.\r\n\r\n### Possible Eventual Improvements\r\n\r\n- **e** key to evaluate an expression in the current scope.\r\n- **q** key to completely quit execution.\r\n- **o** key to “out” a depth level.\r\n- A couple of things regarding the `debugger-message` variable (see source comments).\r\n"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/comments/82847282","html_url":"https://github.com/clojure-emacs/cider-nrepl/pull/170#issuecomment-82847282","issue_url":"https://api.github.com/repos/clojure-emacs/cider-nrepl/issues/170","id":82847282,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T09:31:08Z","updated_at":"2015-03-18T09:31:08Z","body":"Btw, you should mention the new middleware in the README and we should figure out what's wrong with the travis build. "}}