expression evaluation while debugging
Hey,
While I am debugging my typescript code, I want to evaluate some expression for example this one: data?.values?.id.
And then I get a nice error on the evaluate console: SyntaxError: Unexpected token '.'
I think this is because it is a typescript syntax and not node valid syntax while the debug configuration is using node as an interpreter with this option --require ts-node/register to be able to transpile and run the test. Is there any solution for this ?
Thank you.
Please sign in to leave a comment.
Please follow https://youtrack.jetbrains.com/issue/WEB-44500 for updates
As a workaround, I'd suggest to avoid using new typescript syntax there - try evaluating data.values && data.values.id instead