-
Notifications
You must be signed in to change notification settings - Fork 127
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
Debugging using print gives weird result (multiple run in if section) #1833
Comments
I have encountered the same problem. Seems like it's related to #1410 somehow. |
(del: I realized it's another problem and moved it to #1835, but it may be related) |
Here's my example where this behavior affects not only prints but also the rendered data:
renders to
Double |
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see?
I would expect to see in the terminal:
3. What did you see instead (Required)
It feels like the program goes multiple times in the if 🤔 ? Adding the print(_namespace) and _items = [{"namespace": _namespace}] brought 2 more "In if". Accessing more the _namespace variable (using print or otherwise) would not add more "In if"...
The end result of the execution is correct, but this is confusing when trying to debug things.
Maybe something I am not doing right? Please advise.
Thx!
4. What is your KCL components version? (Required)
kcl version 0.11.0
The text was updated successfully, but these errors were encountered: