Open albarivas opened 3 months ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Hi @albarivas, I have not been able to reproduce this issue. When you mention you're trying to debug some apex code, what are the exact steps you follow for the same?
Hi @albarivas, can you provide us with your debug log to see what is going on?
What I did was:
1- Deployed the NewsletterGenerator class (with a few more lines after the code I pasted, that are not important for debugging) 2-Started the apex replay debugger 3-Launched an action on my org that called the class 4-Downloaded the debug log (attached) 5- Launched apex replay debugger with the log file
And then I got the result you see on the screen, the event variable looks empty in the replay debugger, while if you take a look at the system.debug statement on the debug log it's not.
Let me know if it helps!
I was able to repro with that log file. My question now though is if in step 2 you meant you started Apex Interactive Debugger, is that the case?
@CristiCanizales it's the apex replay debugger, started capturing logs is probably more correct :)
This issue has been linked to a new work item: W-16483547
I was able to reproduce this issue and have created a Bug ⬆️ to address it. Thank you for bringing it to our attention!
Summary
Trying to debug some Apex code, Apex replay debugger does not show the content of some variables, while System.debug does.
Steps To Reproduce:
Try to debug this code:
Expected result
event and eventValue should show a value inside the replay debugger panel, same as I can see the value of those variables through system.debug:
Actual result
Additional information
Feel free to attach a screenshot.
Salesforce Extension Version in VS Code: v61.8.1
Salesforce CLI Version: 2.53.6
OS and version: Mac OS 14.6.1 (23G93)
VS Code version: Version: 1.92.1 (Universal)
Most recent version of the extensions where this was working: