forked from algorand/avm-debugger
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: adding option to treat null under sourcemap-locations as valid 'ignore' cases * chore: npm audit * chore: adding npm prepare script for installation via github * feat: add puya debug support (WIP) * chore: support for passing file contents for sourcemaps; puya/teal edge cases (#1) * chore: hiding locals on non puya sourcemaps; adding puya and teal example * chore: no tmpl vars offset edge case fix * chore: rel path for example on puya + teal * chore: workaround on skipping syntentic refs that does not require async file exists * feat: support direct file or encoded content for sourcemaps * refactor: make programSourcesDescription an object instead of JSON * chore: adding more edge cases * chore(src/common): Add program source entry file and type Added 'ProgramSourceEntryFile' and 'ProgramSourceEntry' to the common module. These types are used for parsing program source files. * chore: add support for 'null' sourcemap paths when user prefers ignores * chore: add mocharc file for global timeouts Also fixing a few tests * fix: move program forward call after inner transaction processing * chore: further refine puya example with third parties * feat: integrating Locals with existing expand avm methods * chore: adding puya unit test; moving process unit into program replay --------- Co-authored-by: Daniel McGregor <[email protected]> * fix: step backwards on puya sourcemaps * refactor: use different interface for CallStackFrame vs TraceReplayFrame capture lastIndex for when needing to walk backward in a program remove _ expandedAvmValueCache and instead handle the 'named' and 'indexed' filters correctly * feat: support evaluation of Puya variables * chore: reduce diff * chore: bumping to algosdkv3; adding puya-ts example; extra unit test; * fix: backwards compatibility with SimulateResponse encoded via algosdkv2 * fix: update unit tests to match latest examples * fix: hiding locals on non puya frontend sourcemap paths * chore: transferring advanced examples to extension repo * chore: apply suggestions from code review Co-authored-by: Neil Campbell <[email protected]> --------- Co-authored-by: Daniel McGregor <[email protected]> Co-authored-by: Neil Campbell <[email protected]>
- Loading branch information
1 parent
c0a80eb
commit d5f7e60
Showing
22 changed files
with
10,619 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// .mocharc.js | ||
module.exports = { | ||
timeout: 30000, // 30 seconds | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## How to navigate examples? | ||
|
||
This folder contains sample workspaces representing various debugger use cases: | ||
|
||
- Simulate traces, TEAL sources and sourcemaps (e.g. `stack-scratch`, `stepping-test`, `app-state-changes`, `errors`). Various examples of using the debugger with TEAL sourcemaps and sources. | ||
- Simulate traces, [Puya](https://github.com/algorandfoundation/puya) sources and sourcemaps (e.g. `puya`). Showcasing various ways to simulate traces with puya sourcemaps and sources. | ||
|
||
> **Note:** The frontend language for Puya compiler scenarios is [Algorand Python](https://pypi.org/project/algorand-python/). | ||
### Launching sample workspaces | ||
|
||
Refer to the [launch.json](.vscode/launch.json) file to launch sample workspaces from VSCode. Keep the marketplace-based AlgoKit AVM Debugger extension disabled (if installed). |
Oops, something went wrong.