[ZeroBrane Studio] Re: zbs-vim plugin

  • From: "Paul Reilly" <pajthbr@xxxxxxxxx>
  • To: "Paul K" <paul@xxxxxxxxxxxxx>
  • Date: Sun, 22 Oct 2017 23:54:37 +0100

Thanks for this. It appears to run through the program, stopping at any 
breakpoints and it starts a 2nd instance of ZBS, but breakpoints are no longer 
triggered and the program can't be paused.. &#x200b;It's not very important, 
but if there's something I am missing it would be good to know.
I have also tried to implement the new GetHotKey, but trying to reset the hot 
key using the ID from GetHotKey is not working. You can see it here...
https://github.com/paul-reilly/zbs-vim/blob/master/vim-mode.lua#L103 ;
[https://github.com/paul-reilly/zbs-vim/blob/master/vim-mode.lua#L103]&#x200b;
Anyway I won't annoy you any/much more with this... thanks for all the good 
work!
Regards
Paul


&#x200b;


&#x200b;
From: Paul K
Received: 18/10/2017 06:44:26 +01:00
To: Paul Reilly
CC: zerobrane@xxxxxxxxxxxxx
Hi Paul,

is it possible to debug ZBS/plugins from a second instance of ZBS, or what 
would be the best/any way to achieve this?

Yes, it should be possible. Start one instance with `zbstudio -cfg
"singleinstance=false`, set zbstudio folder as the project folder,
open src/main.lua, set breakpoints you need, start debugging, continue
debugging as needed. Just make sure you don't start the debugger
server from the second instance or re-configure its debugging port to
avoid socket conflicts. See this FAQ answer for further details:
https://studio.zerobrane.com/doc-faq#how-do-i-start-two-zerobrane-studio-instances-to-debug-two-applications-at-the-same-time

Paul.

Other related posts: