salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

In debug mode related objects values are shown as [object Object]

Open PawelWozniak opened this issue 2 years ago • 1 comments

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:

  1. Set Checkpoint and breakpoint in code.
  2. 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. 2022-04-27_22h46_17

also when I hover over code: 2022-04-27_22h46_47

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

PawelWozniak avatar Apr 27 '22 21:04 PawelWozniak

This issue has been linked to a new work item: W-11173323

uip-robot-zz avatar May 19 '22 20:05 uip-robot-zz