Typescript. How to inspect list of complex objects?
Hello, i have next typescript configuration for debug:
{
"version": "1.0.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "DEBUG Jest: date spec",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--config",
"jest.config.cjs",
"-i",
"${workspaceFolder}/src/date.spec.ts"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"sourceMaps": true,
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
}
When i trying to inspect local variables inside list of objects i see incorrect result:
Is it possible to inspect such nested objects?
dap version: 0.7 dap-ui version: 0.2 emacs version: GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.2.0, NS appkit-2299.30 Version 13.1 (Build 22C65)) of 2023-01-14
I am a bit confused - the objects are expandable in the local's view?
Yes, objects expand, but inside array i expect to see
exampleValue [
0: {a: 1},
1: {b: 2},
2: {c: {d: 3},
]
But i see only indexes, and i can't expand them, or is this expected behaviour?
Same for me. I'm emacs user but not an expert so I must change to vscode when I need more fine grained debug 😞
I can see more in the objects, but longer strings other values are truncated. For example, an object might have key message and the value of the key would be 50 characters long. Understandably it is truncated (presumably by package that manages the UI windows, I am yet to check elisp), which is nice. However, I have found no way to inspect the full value. I would expect to hit RET or something similar to expand the value.
I have somewhat of a same problem where basically some objects are expandable and others are not. Pressing tab expands some, and some just have the indicator arrow on the left change position as if object was expanded but that's it.
I have the feeling this happens when the object is an array rather than an object