Difference between revisions of "DEBUGGER"

From Lianjapedia
Jump to: navigation, search
(Created page with "==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)...")
 
Line 11: Line 11:
 
If the DEBUGGER command is included in Lianja/VFP code (e.g. in a custom delegate) the [[:Category:Error_Handling#Lianja.2FVFP_Debugging|Lianja/VFP Debugger]] will be activated when it is executed and undocked into its own floating window.  
 
If the DEBUGGER command is included in Lianja/VFP code (e.g. in a custom delegate) the [[:Category:Error_Handling#Lianja.2FVFP_Debugging|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 [[:Category:Error_Handling#JavaScript_Debugging|JavaScript Debugger]].   
+
The debugger command is also supported in JavaScript code and will activate the [[:Category:Error_Handling#JavaScript_Debugging|JavaScript Debugger]].   
  
 
==Example==
 
==Example==

Revision as of 07:56, 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");
}