{"action":"closed","number":7055,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/7055","id":40252447,"html_url":"https://github.com/cakephp/cakephp/pull/7055","diff_url":"https://github.com/cakephp/cakephp/pull/7055.diff","patch_url":"https://github.com/cakephp/cakephp/pull/7055.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7055","number":7055,"state":"closed","locked":false,"title":"add breakpoint() convenience function","user":{"login":"antograssiot","id":4977112,"avatar_url":"https://avatars.githubusercontent.com/u/4977112?v=3","gravatar_id":"","url":"https://api.github.com/users/antograssiot","html_url":"https://github.com/antograssiot","followers_url":"https://api.github.com/users/antograssiot/followers","following_url":"https://api.github.com/users/antograssiot/following{/other_user}","gists_url":"https://api.github.com/users/antograssiot/gists{/gist_id}","starred_url":"https://api.github.com/users/antograssiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antograssiot/subscriptions","organizations_url":"https://api.github.com/users/antograssiot/orgs","repos_url":"https://api.github.com/users/antograssiot/repos","events_url":"https://api.github.com/users/antograssiot/events{/privacy}","received_events_url":"https://api.github.com/users/antograssiot/received_events","type":"User","site_admin":false},"body":"### Usage\r\nWherever you want in your code\r\n```php\r\n<?php eval(breakpoint()); ?>\r\n```\r\n\r\nIt's an attemp to ease debugging by providing a convenience function that we can properly document.\r\nWorks the same way that eval(Psy\\sh()) and allow interactive debugging in CLI\r\n\r\nHere is an example with the cake console:\r\n![kjmuhmg08o](https://cloud.githubusercontent.com/assets/4977112/8752907/b542e520-2cb7-11e5-8fc8-19d9d87b2655.gif)\r\n\r\nIt's probably not perfect but it's really handy in a lot of situation, please test it locally and see how it works for you. I've tested it on mac and windows.\r\n\r\nand here an example to debug unit test\r\n![mq1i8pr8bk](https://cloud.githubusercontent.com/assets/4977112/8752915/c079885e-2cb7-11e5-93bb-858410774190.gif)\r\n\r\nMore information on http://psysh.org/\r\n\r\nI was wondering if it would better fit in the Debugger class or maybe in DebugKit.","created_at":"2015-07-17T17:19:32Z","updated_at":"2015-07-21T01:56:33Z","closed_at":"2015-07-21T01:56:32Z","merged_at":"2015-07-21T01:56:32Z","merge_commit_sha":"935c528241e29a581123c145ef79cd8e783bfabc","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/31","html_url":"https://github.com/cakephp/cakephp/milestones/3.1.0","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/31/labels","id":919718,"number":31,"title":"3.1.0","description":"Backwards compatible with 3.0.x.\r\n\r\nSee the [Roadmap](https://github.com/cakephp/cakephp/wiki/3.1-Roadmap) for more information.","creator":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":106,"state":"open","created_at":"2015-01-02T15:38:07Z","updated_at":"2015-07-21T01:56:32Z","due_on":"2015-07-20T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/7055/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/7055/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7055/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/9b05995b459db46c5b34ded301eddda17031a1d2","head":{"label":"antograssiot:interactive-debugger","ref":"interactive-debugger","sha":"9b05995b459db46c5b34ded301eddda17031a1d2","user":{"login":"antograssiot","id":4977112,"avatar_url":"https://avatars.githubusercontent.com/u/4977112?v=3","gravatar_id":"","url":"https://api.github.com/users/antograssiot","html_url":"https://github.com/antograssiot","followers_url":"https://api.github.com/users/antograssiot/followers","following_url":"https://api.github.com/users/antograssiot/following{/other_user}","gists_url":"https://api.github.com/users/antograssiot/gists{/gist_id}","starred_url":"https://api.github.com/users/antograssiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antograssiot/subscriptions","organizations_url":"https://api.github.com/users/antograssiot/orgs","repos_url":"https://api.github.com/users/antograssiot/repos","events_url":"https://api.github.com/users/antograssiot/events{/privacy}","received_events_url":"https://api.github.com/users/antograssiot/received_events","type":"User","site_admin":false},"repo":{"id":32791374,"name":"cakephp","full_name":"antograssiot/cakephp","owner":{"login":"antograssiot","id":4977112,"avatar_url":"https://avatars.githubusercontent.com/u/4977112?v=3","gravatar_id":"","url":"https://api.github.com/users/antograssiot","html_url":"https://github.com/antograssiot","followers_url":"https://api.github.com/users/antograssiot/followers","following_url":"https://api.github.com/users/antograssiot/following{/other_user}","gists_url":"https://api.github.com/users/antograssiot/gists{/gist_id}","starred_url":"https://api.github.com/users/antograssiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antograssiot/subscriptions","organizations_url":"https://api.github.com/users/antograssiot/orgs","repos_url":"https://api.github.com/users/antograssiot/repos","events_url":"https://api.github.com/users/antograssiot/events{/privacy}","received_events_url":"https://api.github.com/users/antograssiot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antograssiot/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/antograssiot/cakephp","forks_url":"https://api.github.com/repos/antograssiot/cakephp/forks","keys_url":"https://api.github.com/repos/antograssiot/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antograssiot/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antograssiot/cakephp/teams","hooks_url":"https://api.github.com/repos/antograssiot/cakephp/hooks","issue_events_url":"https://api.github.com/repos/antograssiot/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/antograssiot/cakephp/events","assignees_url":"https://api.github.com/repos/antograssiot/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/antograssiot/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/antograssiot/cakephp/tags","blobs_url":"https://api.github.com/repos/antograssiot/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antograssiot/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antograssiot/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/antograssiot/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antograssiot/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/antograssiot/cakephp/languages","stargazers_url":"https://api.github.com/repos/antograssiot/cakephp/stargazers","contributors_url":"https://api.github.com/repos/antograssiot/cakephp/contributors","subscribers_url":"https://api.github.com/repos/antograssiot/cakephp/subscribers","subscription_url":"https://api.github.com/repos/antograssiot/cakephp/subscription","commits_url":"https://api.github.com/repos/antograssiot/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/antograssiot/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/antograssiot/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/antograssiot/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/antograssiot/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/antograssiot/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antograssiot/cakephp/merges","archive_url":"https://api.github.com/repos/antograssiot/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antograssiot/cakephp/downloads","issues_url":"https://api.github.com/repos/antograssiot/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/antograssiot/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/antograssiot/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/antograssiot/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antograssiot/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/antograssiot/cakephp/releases{/id}","created_at":"2015-03-24T10:21:12Z","updated_at":"2015-05-04T15:28:27Z","pushed_at":"2015-07-20T17:30:29Z","git_url":"git://github.com/antograssiot/cakephp.git","ssh_url":"git@github.com:antograssiot/cakephp.git","clone_url":"https://github.com/antograssiot/cakephp.git","svn_url":"https://github.com/antograssiot/cakephp","homepage":"http://cakephp.org","size":85006,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:3.1","ref":"3.1","sha":"c647c0f7871c79ae477ad792f251d55213f782df","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","created_at":"2010-05-08T14:38:22Z","updated_at":"2015-07-20T22:38:21Z","pushed_at":"2015-07-21T01:56:33Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":239994,"stargazers_count":5931,"watchers_count":5931,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2684,"mirror_url":null,"open_issues_count":136,"forks":2684,"open_issues":136,"watchers":5931,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/7055"},"html":{"href":"https://github.com/cakephp/cakephp/pull/7055"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/7055"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/7055/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/7055/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/7055/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/9b05995b459db46c5b34ded301eddda17031a1d2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"comments":10,"review_comments":2,"commits":4,"additions":23,"deletions":0,"changed_files":1}}