Skip to main content



      Home
Home » Archived » Lua Development Tools » Debugging Lua code launched from a Lua program
Debugging Lua code launched from a Lua program [message #900908] Wed, 08 August 2012 19:42 Go to next message
Eclipse UserFriend
Hi,
I have been using LDT for quite some time now. It works great. Now I want to debug a script that my Lua program loads using loadstring and executes. I added the require('debugger')() line as the 1st line of the script and opened it in LDT and then launched the script from my Lua program. Somehow the code stops execution right after executing the script and not inside it.
How can I get this to work?

Thanks,
Milind
Re: Debugging Lua code launched from a Lua program [message #901291 is a reply to message #900908] Fri, 10 August 2012 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
The dynamic code is not supported, it means that any code that is loaded with load, loadstring will not be supported. The debugger will step over it just like a C function.
Sry
Re: Debugging Lua code launched from a Lua program [message #901333 is a reply to message #901291] Fri, 10 August 2012 16:47 Go to previous message
Eclipse UserFriend
Thanks for the reply. Do you know of any other good way to debug such dynamic code? Also it seemed logical to me that once a lua code is launched by having debugger required and if the debug server is waiting for a connection it should enter into a debug session. Why does it matter that is is launched by load?
Previous Topic:Debugging watch window where __type has been set
Next Topic:Code completion does not work with global variables
Goto Forum:
  


Current Time: Fri Jul 04 11:12:58 EDT 2025

Powered by FUDForum. Page generated in 0.03706 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top