salesforcedx-vscode
salesforcedx-vscode copied to clipboard
In debug mode related objects values are shown as [object Object]
Summary
When I launch debug session with checkpoint and breakpoint set and inspect code then I see that that relations are shown as [object Object]
Steps To Reproduce:
- Set Checkpoint and breakpoint in code.
- Use Debug Test on test class.
I was trying to reproduce that with simple code based on Account and Contact but in such case I am unable to repeat that. It happens on a more complicated query where many fields from a parent are queried and also it contains subquery for children.
It might be connected with relation 2 levels up. In the example below, I start from WorkOrder to get Account from which I am getting SalesOrg from which I am getting Document type. Will try to reproduce such a situation but this is probably an issue. Multilevel parent hierarchy.
Expected result
I expect to see JSON details of objects like in other variables.
Actual result
For work order with Parent Account and list of child Service Appoitments I can't see related object values as [object Object] is shown.
also when I hover over code:
Additional information
Feel free to attach a screenshot.
Salesforce Extension Version in VS Code: v54.9.0
SFDX CLI Version: sfdx-cli/7.147.1 win32-x64 node-v16.14.2
OS and version: Windows 10
This issue has been linked to a new work item: W-11173323