forked from algorand/avm-debugger
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Summary:
The debugger (algokit-avm-vscode-debugger v1.1.6) encounters an issue when processing state-changes objects, specifically with app-state-type == "l" but lack associated account data (e.g., when apat is missing). The debugger will fail to launch and instead throws an error:
Cannot read properties of undefined (reading 'toString')
Example state-changes object:
{
"pc": 1829,
"stack-pop-count": 3,
"state-changes": [
{
"app-state-type": "l",
"key": "dG90YWxfZmVlX3NoYXJl",
"operation": "w"
}
]
}This error can be seen in the screenshot below:

Additional info:
- The debugger should ideally be able to launch even if the state change is missing account data.
- Reference code location: traceReplayEngine.ts#L162
Steps to reproduce:
- Attempt to start the debugger for the attached trace file
- Observe that it fails with the error above.
Expected result:
The debugger should launch successfully—even if the state-change lacks account info—and handle missing fields gracefully.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels