VS Code Tips — Inspecting getter values while debugging and enabling automatic expansion

preview_player
Показать описание
Ever see a little eye icon next to a property while debugging a variable in VS Code? This indicates that the property is lazy, such as for a getter.

To see the actual value, just click on the eye icon to expand it. This will evaluate the getter and show you the result.

You can enable this automatically by setting `Debug: Auto Expand Lazy Variables`. Be careful though if your code is stateful as evaluating the getter may change the state of your program

#vscode #debugging #developertools
Рекомендации по теме
visit shbcf.ru