{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/comments/175248971","pull_request_review_id":104757639,"id":175248971,"diff_hunk":"@@ -940,6 +941,27 @@ def on_evaluate(self, request, args):\n                 variablesReference=0)\n             return\n \n+        if context == 'repl' and is_eval_error == 'True':\n+            # try exec for repl requests\n+            cmd_args = (pyd_tid, pyd_fid, 'LOCAL', expr, '1')\n+            _, _, resp_args = yield self.pydevd_request(\n+                pydevd_comm.CMD_EXEC_EXPRESSION,\n+                msg)\n+            try:\n+                xml2 = untangle.parse(resp_args).xml\n+                xvar2 = xml2.var\n+                result_type  = unquote(xvar2['type'])\n+                result = unquote(xvar2['value'])\n+            except:\n+                # if resp_args is not xml then it contains the error traceback\n+                result_type  = unquote(xvar['type'])","path":"ptvsd/wrapper.py","position":41,"original_position":41,"commit_id":"1eb26a60042c06aeb5a385faa4677e07bb329b41","original_commit_id":"1eb26a60042c06aeb5a385faa4677e07bb329b41","user":{"login":"karthiknadig","id":3840081,"avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"body":"Actually the comment there is incorrect. When i had initially written this it was returning trace back. but this is what you will see:\r\n![image](https://user-images.githubusercontent.com/3840081/37552110-b7388be2-296b-11e8-8689-7910adf2b5c0.png)\r\n","created_at":"2018-03-17T05:45:31Z","updated_at":"2018-03-17T05:45:31Z","html_url":"https://github.com/Microsoft/ptvsd/pull/218#discussion_r175248971","pull_request_url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/comments/175248971"},"html":{"href":"https://github.com/Microsoft/ptvsd/pull/218#discussion_r175248971"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218"}},"in_reply_to_id":175248398},"pull_request":{"url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218","id":175682605,"html_url":"https://github.com/Microsoft/ptvsd/pull/218","diff_url":"https://github.com/Microsoft/ptvsd/pull/218.diff","patch_url":"https://github.com/Microsoft/ptvsd/pull/218.patch","issue_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/218","number":218,"state":"open","locked":false,"title":"Do eval and exec for repl evaluate requests","user":{"login":"karthiknadig","id":3840081,"avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"body":"This change is part of the debug REPL changes needed for VS","created_at":"2018-03-17T04:25:52Z","updated_at":"2018-03-17T05:45:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"124acd22c1dfbece921d7cacb13d118253148a56","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218/commits","review_comments_url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218/comments","review_comment_url":"https://api.github.com/repos/Microsoft/ptvsd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/218/comments","statuses_url":"https://api.github.com/repos/Microsoft/ptvsd/statuses/1eb26a60042c06aeb5a385faa4677e07bb329b41","head":{"label":"karthiknadig:exec","ref":"exec","sha":"1eb26a60042c06aeb5a385faa4677e07bb329b41","user":{"login":"karthiknadig","id":3840081,"avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"repo":{"id":123494653,"name":"ptvsd","full_name":"karthiknadig/ptvsd","owner":{"login":"karthiknadig","id":3840081,"avatar_url":"https://avatars3.githubusercontent.com/u/3840081?v=4","gravatar_id":"","url":"https://api.github.com/users/karthiknadig","html_url":"https://github.com/karthiknadig","followers_url":"https://api.github.com/users/karthiknadig/followers","following_url":"https://api.github.com/users/karthiknadig/following{/other_user}","gists_url":"https://api.github.com/users/karthiknadig/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiknadig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiknadig/subscriptions","organizations_url":"https://api.github.com/users/karthiknadig/orgs","repos_url":"https://api.github.com/users/karthiknadig/repos","events_url":"https://api.github.com/users/karthiknadig/events{/privacy}","received_events_url":"https://api.github.com/users/karthiknadig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karthiknadig/ptvsd","description":"Python debugger package for use with Visual Studio and Visual Studio Code.","fork":true,"url":"https://api.github.com/repos/karthiknadig/ptvsd","forks_url":"https://api.github.com/repos/karthiknadig/ptvsd/forks","keys_url":"https://api.github.com/repos/karthiknadig/ptvsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karthiknadig/ptvsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karthiknadig/ptvsd/teams","hooks_url":"https://api.github.com/repos/karthiknadig/ptvsd/hooks","issue_events_url":"https://api.github.com/repos/karthiknadig/ptvsd/issues/events{/number}","events_url":"https://api.github.com/repos/karthiknadig/ptvsd/events","assignees_url":"https://api.github.com/repos/karthiknadig/ptvsd/assignees{/user}","branches_url":"https://api.github.com/repos/karthiknadig/ptvsd/branches{/branch}","tags_url":"https://api.github.com/repos/karthiknadig/ptvsd/tags","blobs_url":"https://api.github.com/repos/karthiknadig/ptvsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karthiknadig/ptvsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karthiknadig/ptvsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/karthiknadig/ptvsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karthiknadig/ptvsd/statuses/{sha}","languages_url":"https://api.github.com/repos/karthiknadig/ptvsd/languages","stargazers_url":"https://api.github.com/repos/karthiknadig/ptvsd/stargazers","contributors_url":"https://api.github.com/repos/karthiknadig/ptvsd/contributors","subscribers_url":"https://api.github.com/repos/karthiknadig/ptvsd/subscribers","subscription_url":"https://api.github.com/repos/karthiknadig/ptvsd/subscription","commits_url":"https://api.github.com/repos/karthiknadig/ptvsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/karthiknadig/ptvsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/karthiknadig/ptvsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/karthiknadig/ptvsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/karthiknadig/ptvsd/contents/{+path}","compare_url":"https://api.github.com/repos/karthiknadig/ptvsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karthiknadig/ptvsd/merges","archive_url":"https://api.github.com/repos/karthiknadig/ptvsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karthiknadig/ptvsd/downloads","issues_url":"https://api.github.com/repos/karthiknadig/ptvsd/issues{/number}","pulls_url":"https://api.github.com/repos/karthiknadig/ptvsd/pulls{/number}","milestones_url":"https://api.github.com/repos/karthiknadig/ptvsd/milestones{/number}","notifications_url":"https://api.github.com/repos/karthiknadig/ptvsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karthiknadig/ptvsd/labels{/name}","releases_url":"https://api.github.com/repos/karthiknadig/ptvsd/releases{/id}","deployments_url":"https://api.github.com/repos/karthiknadig/ptvsd/deployments","created_at":"2018-03-01T21:30:04Z","updated_at":"2018-03-13T18:25:09Z","pushed_at":"2018-03-17T04:21:19Z","git_url":"git://github.com/karthiknadig/ptvsd.git","ssh_url":"git@github.com:karthiknadig/ptvsd.git","clone_url":"https://github.com/karthiknadig/ptvsd.git","svn_url":"https://github.com/karthiknadig/ptvsd","homepage":null,"size":4007,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"5e6f77587ded346e77f0b26ce2f86c059ff1b025","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":113512989,"name":"ptvsd","full_name":"Microsoft/ptvsd","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/ptvsd","description":"Python debugger package for use with Visual Studio and Visual Studio Code.","fork":false,"url":"https://api.github.com/repos/Microsoft/ptvsd","forks_url":"https://api.github.com/repos/Microsoft/ptvsd/forks","keys_url":"https://api.github.com/repos/Microsoft/ptvsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/ptvsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/ptvsd/teams","hooks_url":"https://api.github.com/repos/Microsoft/ptvsd/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/ptvsd/events","assignees_url":"https://api.github.com/repos/Microsoft/ptvsd/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/ptvsd/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/ptvsd/tags","blobs_url":"https://api.github.com/repos/Microsoft/ptvsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/ptvsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/ptvsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/ptvsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/ptvsd/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/ptvsd/languages","stargazers_url":"https://api.github.com/repos/Microsoft/ptvsd/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/ptvsd/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/ptvsd/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/ptvsd/subscription","commits_url":"https://api.github.com/repos/Microsoft/ptvsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/ptvsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/ptvsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/ptvsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/ptvsd/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/ptvsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/ptvsd/merges","archive_url":"https://api.github.com/repos/Microsoft/ptvsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/ptvsd/downloads","issues_url":"https://api.github.com/repos/Microsoft/ptvsd/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/ptvsd/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/ptvsd/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/ptvsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/ptvsd/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/ptvsd/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/ptvsd/deployments","created_at":"2017-12-08T00:36:13Z","updated_at":"2018-03-16T05:57:11Z","pushed_at":"2018-03-17T04:25:53Z","git_url":"git://github.com/Microsoft/ptvsd.git","ssh_url":"git@github.com:Microsoft/ptvsd.git","clone_url":"https://github.com/Microsoft/ptvsd.git","svn_url":"https://github.com/Microsoft/ptvsd","homepage":null,"size":4005,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":51,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218"},"html":{"href":"https://github.com/Microsoft/ptvsd/pull/218"},"issue":{"href":"https://api.github.com/repos/Microsoft/ptvsd/issues/218"},"comments":{"href":"https://api.github.com/repos/Microsoft/ptvsd/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/ptvsd/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/ptvsd/statuses/1eb26a60042c06aeb5a385faa4677e07bb329b41"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"karthiknadig"}}