SqrTT / prophet

Prophet Debugger (SFCC sandboxes via SDAPI 2.0) extension for VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=SqrTT.prophet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allo to see the value of a let variable

globant-jsosa opened this issue · comments

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.

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

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