{"action":"opened","issue":{"url":"https://api.github.com/repos/gotcha/ipdb/issues/152","repository_url":"https://api.github.com/repos/gotcha/ipdb","labels_url":"https://api.github.com/repos/gotcha/ipdb/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/gotcha/ipdb/issues/152/comments","events_url":"https://api.github.com/repos/gotcha/ipdb/issues/152/events","html_url":"https://github.com/gotcha/ipdb/issues/152","id":337294636,"node_id":"MDU6SXNzdWUzMzcyOTQ2MzY=","number":152,"title":"Support for multiple -m flags","user":{"login":"dmfigol","id":1923704,"node_id":"MDQ6VXNlcjE5MjM3MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1923704?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfigol","html_url":"https://github.com/dmfigol","followers_url":"https://api.github.com/users/dmfigol/followers","following_url":"https://api.github.com/users/dmfigol/following{/other_user}","gists_url":"https://api.github.com/users/dmfigol/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfigol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfigol/subscriptions","organizations_url":"https://api.github.com/users/dmfigol/orgs","repos_url":"https://api.github.com/users/dmfigol/repos","events_url":"https://api.github.com/users/dmfigol/events{/privacy}","received_events_url":"https://api.github.com/users/dmfigol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-01T14:20:36Z","updated_at":"2018-07-01T14:20:36Z","closed_at":null,"author_association":"NONE","body":"With Python 3.7 if you run the program as a module, it is possible to wrap it with another debugging module:\r\n`python3.7 -m pdb -m <my_program_as_module>`\r\nipdb does not recognise multiple **-m** switches yet:\r\n```\r\n-> % pipenv run python -m ipdb -m <my_program_as_module>\r\nLoading .env environment variables...\r\n/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py:125: RuntimeWarning: 'ipdb.__main__' found in sys.modules after import of package 'ipdb', but prior to execution of 'ipdb.__main__'; this may result in unpredictable behaviour\r\n  warn(RuntimeWarning(msg))\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/Users/dmfigol/projects/my/.venv/lib/python3.7/site-packages/ipdb/__main__.py\", line 190, in <module>\r\n    main()\r\n  File \"/Users/dmfigol/projects/my/.venv/lib/python3.7/site-packages/ipdb/__main__.py\", line 138, in main\r\n    opts, args = getopt.getopt(sys.argv[1:], 'hc:', ['--help', '--command='])\r\n  File \"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/getopt.py\", line 95, in getopt\r\n    opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])\r\n  File \"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/getopt.py\", line 195, in do_shorts\r\n    if short_has_arg(opt, shortopts):\r\n  File \"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/getopt.py\", line 211, in short_has_arg\r\n    raise GetoptError(_('option -%s not recognized') % opt, opt)\r\ngetopt.GetoptError: option -m not recognized\r\n```"}}
{"actor":{"display_login":"dmfigol"}}