Skip to content
New issue

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

VS Code VARIABLES View does not show DFDL Variables #1092

Open
ds-nteligen opened this issue Aug 20, 2024 · 2 comments
Open

VS Code VARIABLES View does not show DFDL Variables #1092

ds-nteligen opened this issue Aug 20, 2024 · 2 comments
Labels
debugger Issues related to the DFDL debugger capability enhancement New feature or request extension Issues releated to the VSCode Extension

Comments

@ds-nteligen
Copy link
Collaborator

{Sev: minor}

The VS Code view called VARIABLES does not show DFDL variables. This could be perceived as misleading when working with DFDL files.

@lrbarber
Copy link
Collaborator

Does the Daffodil internal debugger provide this information for external consumption?
If not, is there a way to remove the variables display area from VS Code?

@stevedlawrence
Copy link
Member

Does the Daffodil internal debugger provide this information for external consumption?

Yes, the debugger has access to ParserOrUnparseState, which has a variableMapForDebugger member that contains information about all the variables (both current and previous instances). The CLI "info variables" debugger command has an example of how to access this state information:

https://github.com/apache/daffodil/blob/main/daffodil-runtime1/src/main/scala/org/apache/daffodil/runtime1/debugger/InteractiveDebugger.scala#L1939-L1989

Note that it only displays the current instance of each variable--an enhancement might be to give the ability to display all instances instead.

@lrbarber lrbarber added enhancement New feature or request debugger Issues related to the DFDL debugger capability extension Issues releated to the VSCode Extension labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Issues related to the DFDL debugger capability enhancement New feature or request extension Issues releated to the VSCode Extension
Projects
None yet
Development

No branches or pull requests

3 participants