Difference between revisions of "DEBUGGER"
From Lianjapedia
Yvonne.milne (Talk | contribs) (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)...") |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
− | DEBUGGER | + | DEBUGGER [<filename> [WITH <parameter-list>]] |
==See Also== | ==See Also== | ||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | + | The DEBUGGER command opens the specified prg file <filename> in the [[:Category:Error_Handling#Lianja.2FVFP_Debugging|Lianja/VFP Debugger]] in the undocked [[Debug Tab|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 [[:Category:Error_Handling#Lianja.2FVFP_Debugging|Lianja/VFP Debugger]] will be activated in the [[Debug Tab|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 [[:Category:Error_Handling#JavaScript_Debugging|JavaScript Debugger]]. | ||
==Example== | ==Example== | ||
Line 21: | Line 23: | ||
updateTotal() | updateTotal() | ||
endproc | endproc | ||
+ | |||
+ | // or, from Lianja/VFP Command Window: | ||
+ | debugger main | ||
</code> | </code> | ||
− | or | + | or, in JavaScript code: |
<code lang="javascript"> | <code lang="javascript"> | ||
Line 43: | Line 48: | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Error Handling]] | [[Category:Error Handling]] | ||
+ | [[Category:Lianja v4.1]] |
Latest revision as of 05:57, 12 December 2017
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"); }