DEBUGGER
From Lianjapedia
Revision as of 05:57, 12 December 2017 by Yvonne.milne (Talk | contribs)
Contents
Purpose
Opens the Debugger
Syntax
DEBUGGER [<filename> [WITH <parameter-list>]]
See Also
Description
The DEBUGGER command opens the specified prg file <filename> in the Lianja/VFP Debugger in the undocked App Inspector Debug Tab in its own floating window.
If the DEBUGGER command is included in Lianja/VFP code (e.g. in a custom delegate) the Lianja/VFP Debugger will be activated in the App Inspector Debug Tab when it is executed and undocked into its own floating window.
The debugger command is also supported in JavaScript code and will activate the JavaScript Debugger.
Example
//////////////////////////////////////////////////////////////// // Event delegate for 'interactivechange' event proc page1_section2_ItemCost_interactivechange() debugger updateTotal() endproc // or, from Lianja/VFP Command Window: debugger main
or, in JavaScript code:
//////////////////////////////////////////////////////////////// // Event delegate for 'click' event function page1_section2_field77_click() { debugger; if (m_orderdate.text.length == 0 && m_shipvia.text.length == 0) { messageBox("No order selection filter criteria has been specified.", "Order selection criteria"); return; } messageBox("You specified orderdate="+m_orderdate.text+", shipvia="+m_shipvia.text, "Order selection criteria"); }