You need to sign in to do that
Don't have an account?
David Matusow
error when using system.debug
suddenly, I'm always getting a format error when using system.debug(). No matter what I put in the call, apex indicates that there is a format error. Even something with nothing else there fails.
public class debugtest {
System.debug('testing');
}
it says "expecting right parenthesis, found "testing"
Any ideas???
public class debugtest {
System.debug('testing');
}
it says "expecting right parenthesis, found "testing"
Any ideas???
execute in developer console
And chcek debug logs
OR
execute in developer console
And chcek debug logs
https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_execute_anonymous.htm&language=en
1) Click Debug | Open Execute Anonymous Window to open the Enter Apex Code window.
2) Enter the code you want to run in the Enter Apex Code window or click to open the code editor in a new browser window. To automatically open the resulting debug log when execution is complete, select Open Log.
3) Execute the code:
4) If you selected Open Log, the log will automatically open in the Log Inspector. After the code executes, the debug log will be listed on the Logs tab. Double-click the log to open it in the Log Inspector.
5) To execute the same code again without making changes, click Debug | Execute Last. If you want to modify the code, clickDebug | Open Execute Anonymous Window, to open the Enter Apex Code window with the previous entry.
Let us know if this will help you.