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

Local Vars not show debugging CLLE #1069

Closed
jwoehr opened this issue Feb 14, 2023 · 6 comments
Closed

Local Vars not show debugging CLLE #1069

jwoehr opened this issue Feb 14, 2023 · 6 comments
Labels
debug Debug client issue (IBM)

Comments

@jwoehr
Copy link
Contributor

jwoehr commented Feb 14, 2023

Describe the bug
Local vars panel during debug of CLLE program is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Compile CLLE
  2. Run Debug
  3. Local variables panel is empty
  4. Watch panel does, however, work

Expected behavior
See locals in local variables panel

Screenshots
image

Environment (please complete the following information):

  • IBM i Debug 1.0.0
  • IBM i OS version 7.3
@worksofliam worksofliam added the debug Debug client issue (IBM) label Feb 14, 2023
@mkwan01
Copy link

mkwan01 commented Feb 14, 2023

This is a limitation for CL. The local variables will not show up in the Variables view for CL. You can add a local variable to the Watch view to inspect its value. The CL limitation also exists in RDi.

@jwoehr
Copy link
Contributor Author

jwoehr commented Feb 15, 2023

If you can add a CL variable to a watch, why can't there be a working CL Variables view?
Not arguing, @mkwan01 , just curious what the technical point is here!

@mkwan01
Copy link

mkwan01 commented Feb 15, 2023

This limitation comes from the low level command line debugger STRDBG. When debugging a CL program, it does not know about the list of local variables at the current scope. But given the name of a variable, it can evaluate its value.

@worksofliam
Copy link
Contributor

@jwoehr Do you want to close this issue? Or do you want to leave it open as a requirement?

@jwoehr
Copy link
Contributor Author

jwoehr commented Feb 15, 2023

Probably best to leave it around so people see that it's a known issue. Up to you, my question is answered.

@worksofliam
Copy link
Contributor

I will add it to the docs instead. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug client issue (IBM)
Projects
None yet
Development

No branches or pull requests

3 participants