I love the option of running test methods from VSCode by clicking on
Run Test link that appears below the
@isTest annotation. This works well but when a test method fails, I go ahead and add a
System.debug() statement to troubleshoot where it is failing. But it never prints the debug statements from the test method or actual method.
I tried running
sfdx force:apex:test:run --loglevel trace but still it just prints the result and doesn't print the debug statements.
Can someone help me on this?