| Name | trepan3k-mathics3 JSON |
| Version |
1.1.0
JSON |
| download |
| home_page | None |
| Summary | trepan3k plugin to support Mathics3 debugging |
| upload_time | 2025-09-05 15:30:35 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | None |
| license | None |
| keywords |
debugger
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
Trepan3k plugin to support Mathics3 debugging from trepan3k
===========================================================
Abstract
--------
Here, we have a module extension for the trepan3k debugger that adds
commands that largely filter out and interpret Python information into
a more Mathics3-centric information.
Install
-------
::
$ pip install -e .
Example
-------
::
$ mathics3 --post-mortem # goes into trepan3k post-mortem debugger on error.
In[1]:= (* Put something here that that triggers a bug in Mathics3 *)
Traceback (most recent call last):
File "/tmp/Mathics3/mathics-core/mathics/core/expression.py", line 1907, in _is_neutral_symbol
definition = definitions.get_definition(symbol_name, only_if_exists=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/external-vcs/github/Mathics3/mathics-core/mathics/core/definitions.py", line 506, in get_definition
raise KeyError
KeyError
(Trepan3k:pm) load trepan3k_mathics3
loaded command: "mathics3"
loaded command: "mbacktrace"
loaded command: "mdown"
loaded command: "mup"
loaded command: "printelement"
(Trepan3k:pm) (Trepan3k:pm) help mbacktrace
mbacktrace [options] [count]
Print backtrace of all stack frames, or innermost count frames.
An arrow indicates the 'current frame'. The current frame determines
the context used for many debugger commands such as expression
evaluation or source-line listing.
options are:
-h | --help - give this help
-b | --builtin - show Mathics3 builtin methods
-e | --expr - show Mathics3 Expressions
Examples:
---------
mbacktrace # Print a full stack trace
mbacktrace 2 # Print only the top two entries
Aliases: mbt.
(Trepan3k:pm) mbacktrace -e
E:0 (3) Expression.restructure <class 'mathics.core.expression.Expression'>
restructure(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),
head=<Symbol: CodeParser`Private`reparseUnterminatedGroupNode>, elements=[<Expression: <SymbolConsta...)
called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 1138
E:1 (4) Expression._flatten_sequence <class 'mathics.core.expression.Expression'>
_flatten_sequence(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),
sequence=<function Expression.flatten_pattern_sequence.<locals>.sequence at 0x77d671362ac0>, evaluat...)
called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 418
E:2 (5) Expression.flatten_pattern_sequence <class 'mathics.core.expression.Expression'>
flatten_pattern_sequence(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),
evaluation=<mathics.core.evaluation.Evaluation object at 0x77d671c18f50>)
called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 644
Raw data
{
"_id": null,
"home_page": null,
"name": "trepan3k-mathics3",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "debugger",
"author": null,
"author_email": "Rocky Bernstein <rocky@gnu.org>",
"download_url": "https://files.pythonhosted.org/packages/b8/fb/e67051915d9eb73c93293b9de67600ff09921212e083527bf46c62e6154b/trepan3k_mathics3-1.1.0.tar.gz",
"platform": null,
"description": "Trepan3k plugin to support Mathics3 debugging from trepan3k\n===========================================================\n\nAbstract\n--------\n\nHere, we have a module extension for the trepan3k debugger that adds\ncommands that largely filter out and interpret Python information into\na more Mathics3-centric information.\n\nInstall\n-------\n\n::\n\n $ pip install -e .\n\n\nExample\n-------\n\n::\n\n $ mathics3 --post-mortem # goes into trepan3k post-mortem debugger on error.\n In[1]:= (* Put something here that that triggers a bug in Mathics3 *)\n Traceback (most recent call last):\n File \"/tmp/Mathics3/mathics-core/mathics/core/expression.py\", line 1907, in _is_neutral_symbol\n definition = definitions.get_definition(symbol_name, only_if_exists=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/src/external-vcs/github/Mathics3/mathics-core/mathics/core/definitions.py\", line 506, in get_definition\n raise KeyError\n KeyError\n (Trepan3k:pm) load trepan3k_mathics3\n loaded command: \"mathics3\"\n loaded command: \"mbacktrace\"\n loaded command: \"mdown\"\n loaded command: \"mup\"\n loaded command: \"printelement\"\n (Trepan3k:pm) (Trepan3k:pm) help mbacktrace\n mbacktrace [options] [count]\n\n Print backtrace of all stack frames, or innermost count frames.\n\n\n An arrow indicates the 'current frame'. The current frame determines\n the context used for many debugger commands such as expression\n evaluation or source-line listing.\n\n\n options are:\n\n\n -h | --help - give this help\n -b | --builtin - show Mathics3 builtin methods\n -e | --expr - show Mathics3 Expressions\n\n\n Examples:\n ---------\n\n\n mbacktrace # Print a full stack trace\n mbacktrace 2 # Print only the top two entries\n\n\n\n\n\n Aliases: mbt.\n\n (Trepan3k:pm) mbacktrace -e\n E:0 (3) Expression.restructure <class 'mathics.core.expression.Expression'>\n restructure(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),\n \thead=<Symbol: CodeParser`Private`reparseUnterminatedGroupNode>, elements=[<Expression: <SymbolConsta...)\n called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 1138\n E:1 (4) Expression._flatten_sequence <class 'mathics.core.expression.Expression'>\n _flatten_sequence(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),\n \tsequence=<function Expression.flatten_pattern_sequence.<locals>.sequence at 0x77d671362ac0>, evaluat...)\n called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 418\n E:2 (5) Expression.flatten_pattern_sequence <class 'mathics.core.expression.Expression'>\n flatten_pattern_sequence(reparseUnterminatedGroupNode[{args}, bytes, FilterRules[{Sequence[]}, Options[reparseUnterminatedGro...),\n \tevaluation=<mathics.core.evaluation.Evaluation object at 0x77d671c18f50>)\n called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 644\n",
"bugtrack_url": null,
"license": null,
"summary": "trepan3k plugin to support Mathics3 debugging",
"version": "1.1.0",
"project_urls": {
"Downloads": "https://github.com/Mathics3/trepan3k-mathics3-plugin/releases",
"Homepage": "https://github.com/Mathics3/trepan3k-mathics3-plugin"
},
"split_keywords": [
"debugger"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "88d6e0a6576756aaf3e9230371057289c3bb1c80da930ea31cd832f6e977515d",
"md5": "28823e05d4d615a03655c764f986bdee",
"sha256": "b11c7b202407a681f6a45fa735c1839d68a54071bdbe53e0ca70fce20ecc87df"
},
"downloads": -1,
"filename": "trepan3k_mathics3-1.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "28823e05d4d615a03655c764f986bdee",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 25629,
"upload_time": "2025-09-05T15:30:33",
"upload_time_iso_8601": "2025-09-05T15:30:33.968395Z",
"url": "https://files.pythonhosted.org/packages/88/d6/e0a6576756aaf3e9230371057289c3bb1c80da930ea31cd832f6e977515d/trepan3k_mathics3-1.1.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b8fbe67051915d9eb73c93293b9de67600ff09921212e083527bf46c62e6154b",
"md5": "8607496d0669b2cc3ff42473c59f4155",
"sha256": "9e190c334f0c518ec39486b2007e90a99fd52317dcf8d9ed8a9c4ea13ae266d8"
},
"downloads": -1,
"filename": "trepan3k_mathics3-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8607496d0669b2cc3ff42473c59f4155",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 21961,
"upload_time": "2025-09-05T15:30:35",
"upload_time_iso_8601": "2025-09-05T15:30:35.126055Z",
"url": "https://files.pythonhosted.org/packages/b8/fb/e67051915d9eb73c93293b9de67600ff09921212e083527bf46c62e6154b/trepan3k_mathics3-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-05 15:30:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Mathics3",
"github_project": "trepan3k-mathics3-plugin",
"github_not_found": true,
"lcname": "trepan3k-mathics3"
}