We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug
It is difficult to map the pc returned from a failed transaction back to the PyTeal source line that caused it.
pc
Add a debug: bool flag to the compile options and, if set to True, Assert should return something like:
debug: bool
return Assert(And(thing_being_asserted, Int(currentframe().f_back.f_lineno)))
This allows the small 3 line stack of the failing program to contain the python source line number.
Other possible debug flag changes might include adding comments to the source teal for source file names or line numbers.
The text was updated successfully, but these errors were encountered:
A first attempt by Zeph here: #650, we are making src-mapper more performant
Sorry, something went wrong.
No branches or pull requests
Problem
It is difficult to map the
pc
returned from a failed transaction back to the PyTeal source line that caused it.Solution
Add a
debug: bool
flag to the compile options and, if set to True, Assert should return something like:This allows the small 3 line stack of the failing program to contain the python source line number.
Other possible debug flag changes might include adding comments to the source teal for source file names or line numbers.
The text was updated successfully, but these errors were encountered: