You need to sign in to do that
Don't have an account?
JHA
system.debug
// Method
public pagereference showmsg(){
//ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO,'asdf'));
system.debug('asdfasdf');
return null;
}
Im calling above method on button click but can't see any result!
setup->monitor->log
system Log link near setup.
I cant figure out anything here also.
can anyone please let me know how to use
system.debug('asdf') and also how to debug apex code?
Any one can please help!!
Thanks a lot.
Specially for quick and d way you explained.
Its really very helpfull.
All Answers
Setup -> Monitoring -> Debug Logs
You will need to create a new entry for your user.
Then when you click your button, a new log for the transaction will be created.
There is a lot of information in the debug logs - I'd advised making your debug of the form:
System.debug('############# asasdasd');
as that way its easier to spot.
Also, you can only retain 20 logs - once you have 20 logs, your logging will stop. Best to get in the habit of resetting your log count each time you view the log.
Finally, making a change through the Force IDE and uploading to the server can burn most of your debug logs - always check/reset after uploading if you want to capture debug information.
Thanks a lot.
Specially for quick and d way you explained.
Its really very helpfull.