[ZeroBrane Studio] Setting breakpoints by a package

  • From: Mattes Dolak <xoft@xxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Sun, 10 May 2015 16:52:19 +0200

Hi,

is it possible for a package (that provides an interpreter) to set breakpoints when it is instructed to debug the project, before it actually runs the interpreter? I'd need it to set a breakpoint in a source file that it creates on the fly (the file is typically not opened in ZBS), is that even possible?

If this were possible, I could modify my MCServer interpreter so that it adds a special function in its activation file, sets a breakpoint in that function and the application executing the Lua plugin can call that function whenever it detects a problem (like an xpcall error handler). This way I can get ZBS to break on runtime errors in the plugin, show the stack and variables and everything.

Thanks,
Mattes

Other related posts: