Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "LDT/User Area/TipsandTricks"

< LDT
(Function Parameters Typing)
(Debugger version)
 
Line 38: Line 38:
 
== Debugger version ==
 
== Debugger version ==
  
When starting a debug session, the debugger DBGP client print his version. This version have to be the same as the Lua Developement Tool version. In the case where the versions are differents the behaviour of the debugger can be hazardous. To get the good version of the debugger DBGP client lua file see the user manual at [[Koneki/LDT/Developer_Area/User_Guides/User_Guide_1.1#Launching_DBGp_Client|Launching_DBGp_Client]] section.
+
When starting a debug session, the debugger DBGP client print his version. This version have to be the same as the Lua Developement Tool version. In the case where the versions are differents the behaviour of the debugger can be hazardous. To get the good version of the debugger DBGP client lua file see the user manual at [[LDT/User_Area/User_Guides/User_Guide_1.1#Launching_DBGp_Client|Launching_DBGp_Client]] section.

Latest revision as of 10:18, 16 July 2014

Tips and Tricks

Quick Outline

Using CTRL+O (or Cmd+O on MacOSX) you can display a pop-up which contains the outline for the current file. It can be used to go very quickly to a variable or function declaration.

Code documentation assistance

LDT supports code assistance for code documentation. It allows to document Lua source code (and especially Lua modules), faster and more efficiently, as there are code completion templates provided.

LuadocumentorCodeAssistance.png
LuadocumentorCodeAssistanceInsert.png

Support of LuaJIT debug

LDT debugger is now compatible LuaJIT 2.0.x interpreter. LuaJIT is a Just-In-Time Compiler(JIT) for the Lua programming language.

Note: The debugger needs LuaSocket version 2.1.x to work on top of LuaJIT, see the vm compatibility page.

Explicit Variable Description & Typing

It's now possible to type and set a description for a variable by adding a comment before or after its declaration. Typing a variable allow to have auto-completion on it and explicit your code.

QuickTyping.png

Function Parameters Typing

When function parameters are documented with a type using the Lua Documentation Language, they will benefit full auto-completion in function body.

InnerFunctionParameters.png

Spell Checking

Currently, LDT (DLTK) provides spell checking but no spelling engine, it reuses the one from the Java Development Toolkit. So, to enable the spell checking just install JDT.

Debugger version

When starting a debug session, the debugger DBGP client print his version. This version have to be the same as the Lua Developement Tool version. In the case where the versions are differents the behaviour of the debugger can be hazardous. To get the good version of the debugger DBGP client lua file see the user manual at Launching_DBGp_Client section.

Back to the top