11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

184 webMathematica User GuideNot Using <strong>Wolfram</strong> WorkbenchIf you do not want to use <strong>Wolfram</strong> Workbench, you can use messages and print statements toresolve your problems. You can get message output returned in your web page with MSPGetMesÖsages and the output of print statements with MSPGetPrintOutput. The capture of messageand print output is described in the example Messages.jsp. It is probably a good idea to confirmthat your calculations work correctly in an interactive Mathematica session.In addition to message and print output, you can use the logging and monitor features providedby the system. These are described in more detail in the sections on Logging and the KernelMonitor. The simplest technique is to look at the files written by the servlet engine. A moresophisticated way is to use the monitor, which can be accessed via a URL, for example, http://localhost:8080/webMathematica/Resources/Tools/KernelMonitor.jsp. If you increase the level oflog output by setting VerboseLogs to true, you will generate more output.Using <strong>Wolfram</strong> WorkbenchYou can use <strong>Wolfram</strong> Workbench to debug your Mathematica code as it runs in the server. Withthis you can do things such as set breakpoints, examine the stack, and catch messages. In thisway you can gain a deeper understanding of how your code runs, thereby helping you todevelop more quickly. You can do this for code loaded into a JSP and for code that runs as aweb service. For more information, see the debugging with the Workbench sections of thedocumentation.LoggingAn administrator needs to confirm correct operation of a server and track down problems asthey occur. webMathematica helps by providing a variety of different types of logging systems.webMathematica LoggingwebMathematica provides a flexible logging system that allows you to learn about the runningof your server. This can be useful as a way to track down errors. The system is built on top of

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!