tags:

views:

61

answers:

1

Updating the object in the hosting driver will show any syntax errors, and any runtimes are logged in the appropriate way. I can inspect globals in the object and inherit using commands, but I'm at a loss when it comes to inspecting function-scoped variables and parameters, or stepping through functions and inspecting during the execution.

I can use debugging printf statements in my own code, but these are unwieldy. For some problems, adding a printf would require write access to the code containing the variable I want to watch, which isn't always available.

Is it possible to step through an LPC function in a driver, or is there a "fake" driver built into any IDE, or is there an interpreter that allows step-through, like with perl -d?

A: 

As far as I know there is no such debugging feature in the current LPMUD and LDMUD-driver although nearly all developers have wished for it one time or another.

I'd recommend that you ask Zesstra / Gnomi (the current developers of LDMUD 3.5: svn://svn.bearnip.com/ldmud/trunk) for some hints where to add such a code to the driver.

Leonidas