# pydebugger
Print objects with inspection details and color.
## Installing
Install and update using `pip`
```python:
$ pip install pydebugger
```
pydebugger supports Python 2 and newer, Python 3 and newer, and PyPy.
## Example
What does it look like? Here is an example of a simple pydebugger program:
```python:
# hello.py
from pydebugger.debug import debug
debug(variable1="data1", debug=True)
```
And what does it look like when it's run and printed in color:
```bash
$ python hello.py
2024:09:12~18:21:45:822673 C:\TEMP\hello.py -> variable1: data1 -> TYPE:<class 'str'> -> LEN:5 -> [C:\TEMP\hello.py] [3] PID:21428
```
You can set OS Environment variable DEBUG=1 or DEBUG=True to avoid having to use the parameter "debug=1" or "debug=True"
```python:
from pydebugger.debug import debug
debug(variable1="data1")
```
you can run "debug.py" to provide a debug server with client support using environment variables:
```bash:
# on terminal
export DEBUG_SERVER=1
export DEBUGGER_SERVER=127.0.0.1:50001
# then run hello.py
```
this will send all info to debug server running on '127.0.0.1' on port 50001
You can also run the debug server on a specific port number:
```bash
$ debug.py 50005
```
[![Video Example](https://img.youtube.com/vi/XWL72_oLnJ4/0.jpg)](https://www.youtube.com/watch?v=XWL72_oLnJ4)
Support
--------
* Python 2.7+, Python 3.x
* Windows, Linux
## author
[Hadi Cahyadi](mailto:cumulus13@gmail.com)
[![Buy Me a Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/cumulus13)
[![Donate via Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cumulus13)
[Support me on Patreon](https://www.patreon.com/cumulus13)
Raw data
{
"_id": null,
"home_page": "https://github.com/cumulus13/pydebugger",
"name": "pydebugger",
"maintainer": "cumulus13 Team",
"docs_url": null,
"requires_python": ">=2.7",
"maintainer_email": "cumulus13@gmail.com",
"keywords": null,
"author": "Hadi Cahyadi LD",
"author_email": "cumulus13@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/39/d8/719af87e708405807b387aa89cad9fb59081ab80fae6c67b84ec1d2df142/pydebugger-0.73.tar.gz",
"platform": null,
"description": "# pydebugger\r\n\r\nPrint objects with inspection details and color.\r\n\r\n\r\n## Installing\r\n\r\n\r\nInstall and update using `pip`\r\n\r\n```python:\r\n\r\n $ pip install pydebugger\r\n```\r\n\r\npydebugger supports Python 2 and newer, Python 3 and newer, and PyPy.\r\n\r\n\r\n## Example\r\n\r\nWhat does it look like? Here is an example of a simple pydebugger program:\r\n\r\n```python:\r\n # hello.py\r\n\r\n from pydebugger.debug import debug\r\n \r\n debug(variable1=\"data1\", debug=True)\r\n```\r\n\r\nAnd what does it look like when it's run and printed in color:\r\n\r\n```bash\r\n\r\n $ python hello.py \r\n 2024:09:12~18:21:45:822673 C:\\TEMP\\hello.py -> variable1: data1 -> TYPE:<class 'str'> -> LEN:5 -> [C:\\TEMP\\hello.py] [3] PID:21428\r\n```\r\n\r\nYou can set OS Environment variable DEBUG=1 or DEBUG=True to avoid having to use the parameter \"debug=1\" or \"debug=True\"\r\n\r\n```python:\r\n\r\n from pydebugger.debug import debug\r\n \r\n debug(variable1=\"data1\")\r\n```\r\n\r\nyou can run \"debug.py\" to provide a debug server with client support using environment variables:\r\n\r\n```bash:\r\n # on terminal \r\n\r\n\texport DEBUG_SERVER=1\r\n\texport DEBUGGER_SERVER=127.0.0.1:50001\r\n # then run hello.py\r\n```\r\nthis will send all info to debug server running on '127.0.0.1' on port 50001\r\n\r\nYou can also run the debug server on a specific port number:\r\n```bash\r\n$ debug.py 50005\r\n```\r\n\r\n[![Video Example](https://img.youtube.com/vi/XWL72_oLnJ4/0.jpg)](https://www.youtube.com/watch?v=XWL72_oLnJ4)\r\n\r\n\r\nSupport\r\n--------\r\n\r\n* Python 2.7+, Python 3.x\r\n* Windows, Linux\r\n\r\n## author\r\n[Hadi Cahyadi](mailto:cumulus13@gmail.com)\r\n \r\n\r\n[![Buy Me a Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/cumulus13)\r\n\r\n[![Donate via Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cumulus13)\r\n [Support me on Patreon](https://www.patreon.com/cumulus13)\r\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Print objects with inspection details and color.",
"version": "0.73",
"project_urls": {
"Code": "https://github.com/cumulus13/pydebugger",
"Documentation": "https://github.com/cumulus13/pydebugger",
"Homepage": "https://github.com/cumulus13/pydebugger"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d6e5984bb144ca8428bea44b5d14bb36121f5395ffe9d3eea74c9e4ea1fbe5b",
"md5": "b1fceb311da0868b1ee1ae1e6821503b",
"sha256": "ab027108f28775cd6276510f288f5f78c4cdde4a913395408a5c3260098a707f"
},
"downloads": -1,
"filename": "pydebugger-0.73-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b1fceb311da0868b1ee1ae1e6821503b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=2.7",
"size": 18888,
"upload_time": "2024-12-14T12:08:46",
"upload_time_iso_8601": "2024-12-14T12:08:46.485033Z",
"url": "https://files.pythonhosted.org/packages/6d/6e/5984bb144ca8428bea44b5d14bb36121f5395ffe9d3eea74c9e4ea1fbe5b/pydebugger-0.73-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "39d8719af87e708405807b387aa89cad9fb59081ab80fae6c67b84ec1d2df142",
"md5": "62b2ba4d818262f7c0868795df27c1da",
"sha256": "78d67e8f68de7f5ecf3a0f243b16cac949f8cf8defcaf07a5e27189afc599fc1"
},
"downloads": -1,
"filename": "pydebugger-0.73.tar.gz",
"has_sig": false,
"md5_digest": "62b2ba4d818262f7c0868795df27c1da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=2.7",
"size": 17158,
"upload_time": "2024-12-14T12:08:49",
"upload_time_iso_8601": "2024-12-14T12:08:49.060375Z",
"url": "https://files.pythonhosted.org/packages/39/d8/719af87e708405807b387aa89cad9fb59081ab80fae6c67b84ec1d2df142/pydebugger-0.73.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-14 12:08:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cumulus13",
"github_project": "pydebugger",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pydebugger"
}