Difference between revisions of "DEBUGGER"

From Lianjapedia
Jump to: navigation, search
Line 43: Line 43:
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Error Handling]]
 
[[Category:Error Handling]]
 +
[[Category:Lianja v4.1]]

Revision as of 08:03, 11 December 2017

Purpose

Opens the Debugger

Syntax

DEBUGGER

See Also

DEBUG

Description

If the DEBUGGER command is included in Lianja/VFP code (e.g. in a custom delegate) the Lianja/VFP Debugger will be activated 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

////////////////////////////////////////////////////////////////
// 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");
}