Improve vm trace output #1711
Labels
E-Medium
Medium difficulty problem
enhancement
New feature or request
vm
Issues and PRs related to the Boa Virtual Machine.
The vm trace output currently has a few issues.
Functions without a name should be identifiable.
Currently a function without a name will have printed trace output like this:
@jasonwilliams proposed to have some kind of ID for functions that can make them identifiable between the trace of the compiled output and the call frame execution trace. For the proposed output look at this comment: #1697 (comment)
Call Frame outputs are combined when a Call Frame returns
When a Call Frame (function/constructor) returns it is not visible, where one Call Frame ends and where the other one continues:
In this example, the called function ends after the
Return
opcode. TheGetPropertyByName
opcode belongs to the caller function that is now running again. This should be clearly visible in the trace output.The text was updated successfully, but these errors were encountered: