This article explains how to display log messages in Aptana Output console, useful for debugging Web Runtime widgets.
Contents |
This article assumes that:
For basic information about the Aptana WRT Plugin, please check this Forum Nokia Wiki Article: Aptana WRT Plugin Basics.
First step is to install the Aptana JavaScript debugger, as described here: Installing the JavaScript debugger.
Fastest way to install the debugger Extension in FireFox, is through this direct link: Aptana JavaScript debugger Firefox extension
In order to display a log message from your WRT widget, you have to use the following code:
aptana.log("Your log message");
In order to use the JavaScript debugger, you have to run your WRT project in Debug mode. So, just right-click the "wrt_preview_frame.html" file and then select Debug as -> JavaScript Web Application.
If you don't know how to create a new Web Runtime project from Aptana, check this article: Aptana WRT Plugin Basics.
The Aptana Debug perspective should automatically be opened, and the project started inside Firefox. In case this does not happen:
Once the Debug process has started, your messages will be automatically shown in the Aptana Console view.
If the Console is not opened, just go, from the Aptana menu, to Window -> Show view -> Console.
No related wiki articles found