Difference between revisions of "Phonebot developer's reference/Advanced tools"

From EtherWiki
Jump to: navigation, search
(Script debugger)
(Script debugger)
Line 4: Line 4:
  
 
Applications and modules can be executed using the Run menu to call Run, Debug, and "Step into". Run executes the application normally. Debug and "Step into" execute the application in debug mode. Debug mode displays a debug bar with debug buttons and a script viewer. The debug buttons allow you to execute, pause, and step through the code. The script viewer displays the current script with the active line highlighted.
 
Applications and modules can be executed using the Run menu to call Run, Debug, and "Step into". Run executes the application normally. Debug and "Step into" execute the application in debug mode. Debug mode displays a debug bar with debug buttons and a script viewer. The debug buttons allow you to execute, pause, and step through the code. The script viewer displays the current script with the active line highlighted.
 +
 +
[[Image:debug-paused.small.png|frame||none|The News Reader example paused while querying an RSS feed]]
  
 
== Resource management ==
 
== Resource management ==

Revision as of 18:08, 2 March 2012

Phonebot Plus introduces several tools to simplify development and to help create more manageable applications. Applications created in Phonebot Plus will run in Phonebot, but some features can only be edited in Phonebot Plus.

Script debugger

Applications and modules can be executed using the Run menu to call Run, Debug, and "Step into". Run executes the application normally. Debug and "Step into" execute the application in debug mode. Debug mode displays a debug bar with debug buttons and a script viewer. The debug buttons allow you to execute, pause, and step through the code. The script viewer displays the current script with the active line highlighted.

The News Reader example paused while querying an RSS feed

Resource management

Script browser

The Script Browser in Phonebot is used to track scoped variable references and delete any unreferenced variables from an application. The advanced browser adds access to all scripts within an application and management of user-defined methods (see below).

The Script Browser lists the application object and every module object. Within each object line item are sections labeled Variables and Scripts. From here, scripts within every event and method can be edited without having to navigate to the specific object's properties.

Database browser

Log browser

User-defined methods

Display properties