{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/comments/39336503","id":39336503,"diff_hunk":"@@ -209,3 +220,49 @@ function onRequest(req, callback) {\n \n   callback(rsp);\n }\n+\n+function startDebugger(req, rsp, callback) {\n+  if (cluster.isMaster) {\n+    rsp.error = 'Cannot debug the supervisor process itself.';\n+    return callback(rsp);\n+  }\n+\n+  strongDebugger.start(0, function(err, port) {\n+    rsp.error = err && err.message;\n+    rsp.port = port;\n+    addDebuggerStatusNotificatio(rsp);","path":"lib/targetctl.js","position":39,"original_position":39,"commit_id":"d22cb4e14da25b1fbcb1457f49dd21e7ce29a996","original_commit_id":"d22cb4e14da25b1fbcb1457f49dd21e7ce29a996","user":{"login":"sam-github","id":17607,"avatar_url":"https://avatars.githubusercontent.com/u/17607?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-github","html_url":"https://github.com/sam-github","followers_url":"https://api.github.com/users/sam-github/followers","following_url":"https://api.github.com/users/sam-github/following{/other_user}","gists_url":"https://api.github.com/users/sam-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-github/subscriptions","organizations_url":"https://api.github.com/users/sam-github/orgs","repos_url":"https://api.github.com/users/sam-github/repos","events_url":"https://api.github.com/users/sam-github/events{/privacy}","received_events_url":"https://api.github.com/users/sam-github/received_events","type":"User","site_admin":false},"body":"Notification is spelt wrong, missing a `n`","created_at":"2015-09-12T11:11:08Z","updated_at":"2015-09-12T11:11:08Z","html_url":"https://github.com/strongloop/strong-supervisor/pull/160#discussion_r39336503","pull_request_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/comments/39336503"},"html":{"href":"https://github.com/strongloop/strong-supervisor/pull/160#discussion_r39336503"},"pull_request":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160","id":44569851,"html_url":"https://github.com/strongloop/strong-supervisor/pull/160","diff_url":"https://github.com/strongloop/strong-supervisor/pull/160.diff","patch_url":"https://github.com/strongloop/strong-supervisor/pull/160.patch","issue_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/160","number":160,"state":"open","locked":false,"title":"Control channel for strong-debugger","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"body":"Implement control channel for strong-debugger:\r\n - a new command `dbg-start <worker>` to start the debugger\r\n   on an arbitrary port assigned by the system\r\n - a new command `dbg-stop <worker>` to stop the debugger\r\n - a new command `dbg-status <worker` to query the debugger state\r\n\r\nAdd a new notification \"debugger-status\", it is reported by \"dbg-start\" and \"dbg-stop\" for consumption in strong-mesh-models.\r\n\r\nSee the [spike blog post](https://docs.google.com/document/d/1hPuuKQ3GCLKCUaQaNxuwyRqOfcI_tnqy5TLGLLdWHeM/edit) for a high-level architectural overview.\r\n\r\nConnect to strongloop-internal/scrum-loopback#261\r\n/to @kraman please review\r\n/cc @sam-github ","created_at":"2015-09-09T16:12:28Z","updated_at":"2015-09-12T11:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b834efde43ff0d7ca35a7d7c0ac05637112602d","assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/strongloop/strong-supervisor/milestones/26","html_url":"https://github.com/strongloop/strong-supervisor/milestones/%23Epic:%20Debugger","labels_url":"https://api.github.com/repos/strongloop/strong-supervisor/milestones/26/labels","id":1107851,"number":26,"title":"#Epic: Debugger","description":null,"creator":{"login":"altsang","id":2261105,"avatar_url":"https://avatars.githubusercontent.com/u/2261105?v=3","gravatar_id":"","url":"https://api.github.com/users/altsang","html_url":"https://github.com/altsang","followers_url":"https://api.github.com/users/altsang/followers","following_url":"https://api.github.com/users/altsang/following{/other_user}","gists_url":"https://api.github.com/users/altsang/gists{/gist_id}","starred_url":"https://api.github.com/users/altsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altsang/subscriptions","organizations_url":"https://api.github.com/users/altsang/orgs","repos_url":"https://api.github.com/users/altsang/repos","events_url":"https://api.github.com/users/altsang/events{/privacy}","received_events_url":"https://api.github.com/users/altsang/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-05-13T01:49:34Z","updated_at":"2015-09-09T16:12:28Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160/commits","review_comments_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160/comments","review_comment_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/160/comments","statuses_url":"https://api.github.com/repos/strongloop/strong-supervisor/statuses/d22cb4e14da25b1fbcb1457f49dd21e7ce29a996","head":{"label":"strongloop:feature/debugger-control-channel","ref":"feature/debugger-control-channel","sha":"d22cb4e14da25b1fbcb1457f49dd21e7ce29a996","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":15426083,"name":"strong-supervisor","full_name":"strongloop/strong-supervisor","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-supervisor","description":"Application supervisor that automatically adds cluster control and performance monitoring with StrongOps","fork":false,"url":"https://api.github.com/repos/strongloop/strong-supervisor","forks_url":"https://api.github.com/repos/strongloop/strong-supervisor/forks","keys_url":"https://api.github.com/repos/strongloop/strong-supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-supervisor/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-supervisor/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-supervisor/events","assignees_url":"https://api.github.com/repos/strongloop/strong-supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-supervisor/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-supervisor/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-supervisor/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-supervisor/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-supervisor/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-supervisor/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-supervisor/merges","archive_url":"https://api.github.com/repos/strongloop/strong-supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-supervisor/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-supervisor/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-supervisor/releases{/id}","created_at":"2013-12-24T22:28:42Z","updated_at":"2015-08-10T00:44:12Z","pushed_at":"2015-09-10T08:52:24Z","git_url":"git://github.com/strongloop/strong-supervisor.git","ssh_url":"git@github.com:strongloop/strong-supervisor.git","clone_url":"https://github.com/strongloop/strong-supervisor.git","svn_url":"https://github.com/strongloop/strong-supervisor","homepage":"","size":3152,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":26,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"3bdc18b18ab3b43f8e4d5dfe0a8ec06d83d86797","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":15426083,"name":"strong-supervisor","full_name":"strongloop/strong-supervisor","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-supervisor","description":"Application supervisor that automatically adds cluster control and performance monitoring with StrongOps","fork":false,"url":"https://api.github.com/repos/strongloop/strong-supervisor","forks_url":"https://api.github.com/repos/strongloop/strong-supervisor/forks","keys_url":"https://api.github.com/repos/strongloop/strong-supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-supervisor/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-supervisor/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-supervisor/events","assignees_url":"https://api.github.com/repos/strongloop/strong-supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-supervisor/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-supervisor/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-supervisor/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-supervisor/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-supervisor/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-supervisor/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-supervisor/merges","archive_url":"https://api.github.com/repos/strongloop/strong-supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-supervisor/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-supervisor/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-supervisor/releases{/id}","created_at":"2013-12-24T22:28:42Z","updated_at":"2015-08-10T00:44:12Z","pushed_at":"2015-09-10T08:52:24Z","git_url":"git://github.com/strongloop/strong-supervisor.git","ssh_url":"git@github.com:strongloop/strong-supervisor.git","clone_url":"https://github.com/strongloop/strong-supervisor.git","svn_url":"https://github.com/strongloop/strong-supervisor","homepage":"","size":3152,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160"},"html":{"href":"https://github.com/strongloop/strong-supervisor/pull/160"},"issue":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/issues/160"},"comments":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/strong-supervisor/statuses/d22cb4e14da25b1fbcb1457f49dd21e7ce29a996"}}}}