Newer Version Available
Debugging JavaScript Remoting
Debugging pages that use JavaScript remoting requires you to debug
Visualforce, Apex, and
JavaScript.
When a @RemoteAction method throws an exception due to a programming error or other failure, the Apex stack trace is returned to the browser within the event object. Inspect the stack trace in a JavaScript debugger console or use it in the error handling of your response callback function.
Here’s a callback function that simply displays the stack trace when there’s an
exception.