{ "info": { "author": "anatoly techtonik ", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: Public Domain", "Topic :: Software Development :: Debuggers", "Topic :: Utilities" ], "description": "This module prints `function trace` to stdout from the moment it is called::\r\n\r\n import xtrace\r\n xtrace.start()\r\n ...\r\n xtrace.stop()\r\n\r\nIt is also possible to call `xtrace` as module from the command line::\r\n\r\n python -m xtrace [param] ...\r\n\r\nor use as a standalone script::\r\n\r\n python xtrace.py [param] ...\r\n\r\n\r\nThe output format is inspired by Xdebug function traces and will likely to\r\nmerge with it http://xdebug.org/docs/execution_trace to be compatible with\r\nPHP inspection tools. But I didn't have enough time to polish it, so feel\r\nfree to send a patch if you know how to bring them closer.\r\n\r\nThis code is released into public domain. Enjoy!\r\n\r\n\r\nHistory\r\n=======\r\n\r\n * 0.5 - fix major crash when function in executed script tried to read\r\n variables in its global scope\r\n * 0.4 - added beep function which beeps in DEBUG mode when excited\r\n * 0.3 - fix AttributeError when running from console (issue #2)\r\n * 0.2 - added version info, support running from command line, moved main\r\n functions into a class to isolate used variables in local namespace\r\n * 0.1 - initial release\r\n\r\n\r\nCredits\r\n=======\r\nAmaury Forgeot d'Arc, for valuable insight into Python internals\r\n\r\n\r\nDebugging\r\n=========\r\nTo see various internal events that `xtrace` produces on top of standard\r\ndata provided by Python, enable DEBUG option::\r\n\r\n import xtrace\r\n xtrace.DEBUG = True\r\n\r\nThis will call `beep` functiton for every interesting event. Feel free to\r\noverride it (monkeypatch) with your own to filter messages, forward, etc. \r\n\r\n\r\nKnown Python Bugs\r\n=================\r\nPython bugs affecting trace output in unexpected way:\r\n\r\nhttp://bugs.python.org/issue15005 (Python 2, Linux only)\r\n - captured stdout from subprocess call becomes corrupted\r\n under a trace function that prints to the screen", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/techtonik/xtrace/", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "xtrace", "package_url": "https://pypi.org/project/xtrace/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xtrace/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/techtonik/xtrace/" }, "release_url": "https://pypi.org/project/xtrace/0.5/", "requires_dist": null, "requires_python": null, "summary": "Indented function trace in Xdebug format", "version": "0.5" }, "last_serial": 1002248, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "215c00c217056a75abd0e9c09d5420a2", "sha256": "c882e20c6027accd9e6a57f6cc4b5c84441291be0d50a93dc66e06c792f869de" }, "downloads": -1, "filename": "xtrace-0.1.tar.gz", "has_sig": false, "md5_digest": "215c00c217056a75abd0e9c09d5420a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1842, "upload_time": "2011-10-25T14:53:22", "url": "https://files.pythonhosted.org/packages/9a/24/11e909dd11e514b8de97c0414f8826587c229043189f1086384a03470049/xtrace-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a8e7935a57eb69832c8e1b8142aab0e3", "sha256": "2807d69404a196df8ff48ab8fcfa872f32252f120f353edf149b14589ff8e539" }, "downloads": -1, "filename": "xtrace-0.2.tar.gz", "has_sig": false, "md5_digest": "a8e7935a57eb69832c8e1b8142aab0e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2399, "upload_time": "2011-11-08T20:16:30", "url": "https://files.pythonhosted.org/packages/d3/a5/8e191735a0e0a78ba3cb00b93a9ea44d057882f7c82120c7a2dc9fb6bdaa/xtrace-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4791d296737818983ce7f437bbb879db", "sha256": "4064890db29d5712e68013f727a6204e796996ba7d304c5f3864b71115aad9c8" }, "downloads": -1, "filename": "xtrace-0.3.tar.gz", "has_sig": false, "md5_digest": "4791d296737818983ce7f437bbb879db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2519, "upload_time": "2013-03-22T08:08:01", "url": "https://files.pythonhosted.org/packages/e6/2b/74fae8a9c6acb0461e31b3fc46e4597ae7df8cdc3bdb48a28baaeb8b87e5/xtrace-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "7337adb1648954035f84d1e6e7339ae6", "sha256": "fae70222e8d57fa3c4e98b1426f587503917ccbef844854fa93628c04e4aa8dc" }, "downloads": -1, "filename": "xtrace-0.4.tar.gz", "has_sig": false, "md5_digest": "7337adb1648954035f84d1e6e7339ae6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3194, "upload_time": "2013-03-22T09:56:58", "url": "https://files.pythonhosted.org/packages/45/5d/a45a0b9844152453698a7e13f2bea4181e4d8d9b5f08d94110bd04a2082c/xtrace-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "2de4f0a53e2321a45e0039e55ccf09d8", "sha256": "440fef119898d13f2332931e4781a52b749506b9d5dcc97a9d3222d8c4caceb9" }, "downloads": -1, "filename": "xtrace-0.5.zip", "has_sig": false, "md5_digest": "2de4f0a53e2321a45e0039e55ccf09d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5086, "upload_time": "2014-02-17T15:19:26", "url": "https://files.pythonhosted.org/packages/91/54/9c3f6e95cc7337594ec0c37030b3742c70908ef0e5a7c7f6381637eee1d7/xtrace-0.5.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2de4f0a53e2321a45e0039e55ccf09d8", "sha256": "440fef119898d13f2332931e4781a52b749506b9d5dcc97a9d3222d8c4caceb9" }, "downloads": -1, "filename": "xtrace-0.5.zip", "has_sig": false, "md5_digest": "2de4f0a53e2321a45e0039e55ccf09d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5086, "upload_time": "2014-02-17T15:19:26", "url": "https://files.pythonhosted.org/packages/91/54/9c3f6e95cc7337594ec0c37030b3742c70908ef0e5a7c7f6381637eee1d7/xtrace-0.5.zip" } ] }