Skip to main content
I need help printing system.debug for my apex specialist class that I am working on. How do you recommend it?  Can I change the case to "closed" to test it? I am worried that it causes issues when I try to complete a challenge. I was not sure if those records should be touched or not. 

https://trailhead.salesforce.com/en/content/learn/superbadges/superbadge_apex 
2 answers
  1. Apr 27, 1:27 PM

    For Apex debugging, it’s better to rely on Debug Logs instead of changing record states like “Closed,” since that can affect validation rules or challenge requirements. Use System.debug() and check logs in the Developer Console or Setup → Debug Logs.

    Kind of like testing before final output—in printing I do the same by running a quick check from https://printertestingpage.com to avoid issues before the final result.  

0/9000