SDK |
Documentation |
JavaSonics ListenUp is no longer for sale.How to Debug Applications that use ListenUpScript DebuggingYou can print extra debug information to the output of your "uploadURL" server scripts . The extra text will be echoed to the Java Console. How To Turn On the Java ConsoleWindowsInternet Explorer using the Microsoft JVM: select "Java Console" from the "View" menu. If there are no "Java Console" menu items, then you must first enable it by selecting the "Internet Options" menu item from the "Tools" menu. Select the "Advanced" tab, then check the "Java console enabled" under the "VM" section. Then restart Internet Explorer. Internet Explorer using the Sun Java Plugin: select "Sun Java Console" from the "Tools" menu. If there are no "Sun Java Console" menu items, then you must first enable it by opening the "Java Plugin" Control Panel, selecting the "Basic" tab, and checking the "Show Console" tab. For Mozilla Firefox: install the excellent "Web Developer" plugin. Then select "Open Java Console" from the "Miscellaneous" toolbar menu. Sun Java Plugin: If you cannot view the JavaConsole using the above techniques, you can still see it as a file. My name is "Phil" and I found the logs in the folder "C:\Documents and Settings\Phil\Application Data\Sun\Java\Deployment\log". Look for the most recent "*.trace" file. If your computer has training wheels then you won't be able to see the "Application Data" folder. To remove the training wheels on Windows XP:
Mac OS X
Internal Debug MessagesThe ListenUp Applet can print its own debugging messages to the Java Console. These may or may not mean much to you but they might help diagnose a problem. You can control how many debug messages are printed to the Java Console by setting the "debugLevel" Applet parameter. Set it to "0" for terse, "1" for informative, and "2" for verbose output. For example, for verbose debugging output. <param name="debugLevel" value="2"> Diagnostic Logging to the ServerYou can log information to your server when a user starts the applet, starts and stops playing or recording, or has an exception. This is helpful when tracking long term performance of the Applet. You can turn on diagnostic logging by passing a "diagnosticURL" parameter. This should be the URL of a server script that can accept POSTed data and log it to a file. An example is included in the SDK at "listenup/php_test/logstatus.php". The following variables may be sent by the applet to the server using a POST command:
|