You need to sign in to do that
Don't have an account?
Astrocloud
debug messages in visual force pages?
Hi, thanks for reading...
I'm having trouble finding where some of my code is going wrong.
The code is uploaded from the IDE just fine but when executed via a command button:
apex:commandButton action="{!shop}" value="Buy"
The code leads to a "is down for maintenance ".
When I was an undergrad writing code; I used to be able to write to stdout... to see how far my code was going before it went awry...
Is there a way to do this in Apex for visualforce pages?
Thanks,
Eric
you can use Message class for printing the debug log in Page.
http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_message.htm
All Answers
you can use Message class for printing the debug log in Page.
http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_message.htm
You can also use System.debug() from Apex and then look in the debug logs (in Setup -> Monitoring -> Debug logs)
How do I enable it?
If you do not have any debug levels set, please set them up before you create a new trace for Debug.
Logs are generated at the time of execution.
Nikhil Shringarpure