{"action":"opened","issue":{"url":"https://api.github.com/repos/Kozea/wdb/issues/52","labels_url":"https://api.github.com/repos/Kozea/wdb/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/wdb/issues/52/comments","events_url":"https://api.github.com/repos/Kozea/wdb/issues/52/events","html_url":"https://github.com/Kozea/wdb/issues/52","id":85052014,"number":52,"title":"AttributeError: 'module' object has no attribute '__code__'","user":{"login":"Yajo","id":973709,"avatar_url":"https://avatars.githubusercontent.com/u/973709?v=3","gravatar_id":"","url":"https://api.github.com/users/Yajo","html_url":"https://github.com/Yajo","followers_url":"https://api.github.com/users/Yajo/followers","following_url":"https://api.github.com/users/Yajo/following{/other_user}","gists_url":"https://api.github.com/users/Yajo/gists{/gist_id}","starred_url":"https://api.github.com/users/Yajo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yajo/subscriptions","organizations_url":"https://api.github.com/users/Yajo/orgs","repos_url":"https://api.github.com/users/Yajo/repos","events_url":"https://api.github.com/users/Yajo/events{/privacy}","received_events_url":"https://api.github.com/users/Yajo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T11:32:12Z","updated_at":"2015-06-04T11:32:12Z","closed_at":null,"body":"While debugging, I wrote something like `.b module.name#function`.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/wdb/ui.py\", line 162, in loop\r\n    stop = self.interact()\r\n  File \"/usr/lib/python2.7/site-packages/wdb/ui.py\", line 199, in interact\r\n    rv = fun(data)\r\n  File \"/usr/lib/python2.7/site-packages/wdb/ui.py\", line 461, in do_break\r\n    brk['fn'], brk['lno'], brk['temporary'], brk['cond'], brk['fun'])\r\n  File \"/usr/lib/python2.7/site-packages/wdb/__init__.py\", line 392, in set_break\r\n    filename, lineno, temporary, cond, funcname)\r\n  File \"/usr/lib/python2.7/site-packages/wdb/__init__.py\", line 382, in get_break\r\n    return FunctionBreakpoint(filename, funcname, temporary)\r\n  File \"/usr/lib/python2.7/site-packages/wdb/breakpoint.py\", line 128, in __init__\r\n    file = file_from_import(file, function)\r\n  File \"/usr/lib/python2.7/site-packages/wdb/breakpoint.py\", line 28, in file_from_import\r\n    return fun.__code__.co_filename\r\nAttributeError: 'module' object has no attribute '__code__'\r\n\r\n```\r\n"}}