Skip to main content
johnrellis
Legend
November 3, 2010
Question

Debugging Toolkit for Lightroom 3 SDK

  • November 3, 2010
  • 1 reply
  • 1377 views

I'm making available my Debugging Toolkit, which I've used for the last month in my own development.  It provides some basic debugging tools:

- strict.lua: The standard script from the Lua distribution that detects undeclared global variables (usually typos).

- Require.lua: A replacement for the standard require that provides the ability to reload all files and to define a search path for loading .lua files from shared directories.

- debugscript.lrdevplugin: Provides quick, easy loading and reloading of scripts (whether or not they're part of a plugin), error trapping, and automatic display of the offending source line in your favorite text editor.

- Debug.lua: A standalone debugging module that provides an interactive debugger with breakpoints, stack traces, and evaluation of expressions; a "pretty printer" that nicely formats any Lua value (including nested and circular tables); some logging tools; and a rudimentary elapsed-time profiler for functions.

Each of these components can be used standalone, without the others.

Download it from:

http://www.johnrellis.com/lightroom/debugging-toolkit.htm

Feedback appreciated, though I may not be able to act on it.

This topic has been closed for replies.

1 reply

johnrellis
Legend
November 3, 2010

Also, depending on whether people find this useful and how Rob's efforts proceeds, we can consider whether to merge this in with that.

areohbee
Legend
November 3, 2010

John,

I played very briefly with the debugging toolkit - thank you for that. - I hope we'll soon be conferring about how to best incorporate that into "Our" repository - the common source code in svn at https://www.assembla.com/spaces/lrdevplugin/

Rob

johnrellis
Legend
November 12, 2010

There's a new version that fixes a bug in handling compiled .lua files:

http://www.johnrellis.com/lightroom/debugging-toolkit.htm