[ZeroBrane Studio] Re: Debugging causes crash in Lua 5.3

  • From: Milind Gupta <milind.gupta@xxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Tue, 26 May 2015 01:28:45 -0700

Hi Paul,

On Mon, May 25, 2015 at 10:10 PM, Paul K <paul@xxxxxxxxxxxxx> wrote:

Hi Milind,

I am using Lua 5.3 and I started to debug 1 script and I notice
something very strange. When I enter the debug mode lua crashes
immediately
for script 1 but runs fine for script 2. The only difference between the
scripts is the comment section. For script 1 after crash it says
compilation
error. But doing a compile it says its fine.

This is indeed strange. I just tried on my Windows machine, but both
of those files run fine with the packaged Lua 5.3 interpreter (at
least until require("iuplua") call).

Couple of questions: do you start debugging from the IDE or externally
(using Lua 5.3 that doesn't ship with ZBS)?


I start debugging with a Lua 5.3 which doesn't ship with ZBS, I have
compiled it from the Lua source files after adding to the PATH and CPATH
defaults and compiling with the LUA_COMPAT_MODULE definition.

What OS are you running on
(I assume it's Windows, but what version)?


I am running this on windows 7

Does the script work when
you Run it (instead of Debug)?


Yes running it works fine

Does the script print anything at all
before crashing or does it crash immediately?


Going into debug causes it to crash immediately without even going to the
1st line.

If you do external debugging (the application is started outside of
ZBS), can you enable verbose debugging (debugger.verbose = true) and
include the output for the run that ends with the crash? You can
sanitize the output or email off-list if there is any sensitive
information.


Please would you elaborate how to start debugging outside of ZBS?


I don't see you doing anything wrong with the scripts (or you setup),
but at this point I can't think of what may be causing the results you
see.

Paul.


Thanks,
Milind

Other related posts: