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

Allo to see the value of a let variable #376

Open
globant-jsosa opened this issue Mar 19, 2024 · 2 comments
Open

Allo to see the value of a let variable #376

globant-jsosa opened this issue Mar 19, 2024 · 2 comments

Comments

@globant-jsosa
Copy link

Hi.

I've thought this tool is amazing, It always has helped me to resolve a lot of conflict that I've had during my projects. But I consider it has a big limitation. prophet doesn't able to debug the variable with scope local as "Let" Is there some posibility to include this feature as soon as posible.

For Example in my actual project I want to see the value located into this variable called "cardsTokenList" but When i try to write it in the debuug console it throws an error "cardsTokenList" is not defined or it isn't locate in the variable stack or when I pass the mosue over the variable it doesn't display the value. Please see the image.

image

I consider that add this improvement it would give to the tool a better experience with the users.

Regards.

@SqrTT
Copy link
Owner

SqrTT commented Mar 19, 2024

Hi @globant-jsosa

on example cardsTokenList should be visible only after execution flow passes place where it's defined, since let has no lexical scope like var. It has block scope visibility.
cardsTokenList doesn't exists until it's created in row 382. Also it will not be visible after execution flow leaves block where it's defined.

Nothing with extension here... that's how JavaScript is working

@globant-jsosa
Copy link
Author

Hi @SqrTT

Thanks for your anwser, you're right respect to the cardsTokenList variable it was my mistake the image is wrong.

I know about your point respect of the variable definition.

But, now my question is. Could I see the variable when all the function be executed in this case in another controller or what another place exactly? maybe after the next() function? See the image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants