{"action":"created","issue":{"url":"https://api.github.com/repos/microsoft/ptvsd/issues/1808","repository_url":"https://api.github.com/repos/microsoft/ptvsd","labels_url":"https://api.github.com/repos/microsoft/ptvsd/issues/1808/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/ptvsd/issues/1808/comments","events_url":"https://api.github.com/repos/microsoft/ptvsd/issues/1808/events","html_url":"https://github.com/microsoft/ptvsd/issues/1808","id":499995023,"node_id":"MDU6SXNzdWU0OTk5OTUwMjM=","number":1808,"title":"break_into_debugger() not working for \"code\" in py2.7","user":{"login":"int19h","id":1175142,"node_id":"MDQ6VXNlcjExNzUxNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1175142?v=4","gravatar_id":"","url":"https://api.github.com/users/int19h","html_url":"https://github.com/int19h","followers_url":"https://api.github.com/users/int19h/followers","following_url":"https://api.github.com/users/int19h/following{/other_user}","gists_url":"https://api.github.com/users/int19h/gists{/gist_id}","starred_url":"https://api.github.com/users/int19h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/int19h/subscriptions","organizations_url":"https://api.github.com/users/int19h/orgs","repos_url":"https://api.github.com/users/int19h/repos","events_url":"https://api.github.com/users/int19h/events{/privacy}","received_events_url":"https://api.github.com/users/int19h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-09-30T00:26:52Z","updated_at":"2019-09-30T00:27:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Repros consistently when running the following test:\r\n`test_break_api[attach_by_socket(api)-ptvsd.break_into_debugger-code]`\r\nThe test times out, because the function doesn't actually break. \r\n\r\nNote that the same test, but with `attach_by_socket(cli)`, passes. The difference between the two is whether `pydevd.settrace()` is called before the code starts executing, or after - for `api`, `enable_attach()` is called from inside `import dbeug_me`. \r\n"},"comment":{"url":"https://api.github.com/repos/microsoft/ptvsd/issues/comments/536357239","html_url":"https://github.com/microsoft/ptvsd/issues/1808#issuecomment-536357239","issue_url":"https://api.github.com/repos/microsoft/ptvsd/issues/1808","id":536357239,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNjM1NzIzOQ==","user":{"login":"int19h","id":1175142,"node_id":"MDQ6VXNlcjExNzUxNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1175142?v=4","gravatar_id":"","url":"https://api.github.com/users/int19h","html_url":"https://github.com/int19h","followers_url":"https://api.github.com/users/int19h/followers","following_url":"https://api.github.com/users/int19h/following{/other_user}","gists_url":"https://api.github.com/users/int19h/gists{/gist_id}","starred_url":"https://api.github.com/users/int19h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/int19h/subscriptions","organizations_url":"https://api.github.com/users/int19h/orgs","repos_url":"https://api.github.com/users/int19h/repos","events_url":"https://api.github.com/users/int19h/events{/privacy}","received_events_url":"https://api.github.com/users/int19h/received_events","type":"User","site_admin":false},"created_at":"2019-09-30T00:27:43Z","updated_at":"2019-09-30T00:27:43Z","author_association":"CONTRIBUTOR","body":"Here's the server log - `break_into_debugger()` has been invoked:\r\n```\r\nI+00000.019: Windows-10-10.0.18362 AMD64\r\n             CPython 2.7.16 (64-bit)\r\n             ptvsd 5.0.0a5+11.gc5cdcbc.dirty\r\n\r\nI+00000.029: ptvsd.server debug start environment:\r\n             \r\n             CPU count: 16\r\n             \r\n             System paths:\r\n                 sys.prefix: c:\\git\\ptvsd.ref\\.tox\\py27\r\n                 sys.base_prefix: <missing>\r\n                 sys.real_prefix: C:\\Python\\2.7-64\r\n                 site.getsitepackages(): <missing>\r\n                 site.getusersitepackages(): <missing>\r\n                 sys.path (site-packages): c:\\git\\ptvsd.ref\\.tox\\py27\\lib\\site-packages\r\n                 sysconfig.get_path('stdlib'): c:\\git\\ptvsd.ref\\.tox\\py27\\Lib\r\n                 sysconfig.get_path('platstdlib'): c:\\git\\ptvsd.ref\\.tox\\py27\\Lib\r\n                 sysconfig.get_path('purelib'): c:\\git\\ptvsd.ref\\.tox\\py27\\Lib\\site-packages\r\n                 sysconfig.get_path('platlib'): c:\\git\\ptvsd.ref\\.tox\\py27\\Lib\\site-packages\r\n                 sysconfig.get_path('include'): c:\\git\\ptvsd.ref\\.tox\\py27\\Include\r\n                 sysconfig.get_path('scripts'): c:\\git\\ptvsd.ref\\.tox\\py27\\Scripts\r\n                 sysconfig.get_path('data'): c:\\git\\ptvsd.ref\\.tox\\py27\r\n                 os.__file__: c:\\git\\ptvsd.ref\\.tox\\py27\\lib\\os.pyc\r\n                 threading.__file__: C:\\Python\\2.7-64\\Lib\\threading.pyc\r\n\r\nI+00000.029: enable_attach((u'127.0.0.1', 5681), None, True)\r\n\r\nI+00000.030: Won't trace filenames starting with: [\r\n                 \"c:\\\\git\\\\ptvsd.ref\\\\src\\\\ptvsd\"\r\n             ]\r\n             Won't trace filenames ending with: [\r\n                 \"ptvsd_launcher.py\"\r\n             ]\r\n\r\nI+00000.037: pydevd debug server running at: 127.0.0.1:53955\r\n\r\nI+00000.037: enable_attach() spawning adapter: ['c:\\\\git\\\\ptvsd.ref\\\\.tox\\\\py27\\\\scripts\\\\python.exe', u'c:\\\\git\\\\ptvsd.ref\\\\src\\\\ptvsd\\\\adapter', u'--host', u'127.0.0.1', u'--port', '5681', u'--for-server-on-port', '53955', u'--log-dir', 'C:\\\\git\\\\ptvsd.ref\\\\tests\\\\_logs\\\\2.7-64\\\\test_break_api[attach_by_socket(api)-ptvsd.break_into_debugger-code]\\\\Session-20']\r\n\r\nI+00000.627: ptvsd debug server running at: 127.0.0.1:5681\r\n\r\nI+00000.627: wait_for_attach()\r\n\r\nI+00000.728: break_into_debugger()\r\n```"}}
{"actor":{"display_login":"int19h"}}