[ZeroBrane Studio] ??????[ZeroBrane Studio] Re: print to debug console

  • From: "????????" <894597841@xxxxxx>
  • To: "zerobrane" <zerobrane@xxxxxxxxxxxxx>
  • Date: Fri, 4 Dec 2015 16:36:53 +0800

Thanks.------------------ ???????? ------------------
??????: "Paul K"<paul@xxxxxxxxxxxxx>
????????: 2015??12??4??(??????) ????4:06
??????: "zerobrane@xxxxxxxxxxxxx"<zerobrane@xxxxxxxxxxxxx>;
????: [ZeroBrane Studio] Re: print to debug console


Hi Thijs,

Is there an easy way to print to the remote console?

You may be able to do this with "print" if you set
debugger.redirect="c"
(https://studio.zerobrane.com/doc-general-preferences#debugger).

It may still be a good idea to have "print" method in mobdebug...

require(??mobdebug??).stop()

This should probably be "done()"

Paul

On Thu, Dec 3, 2015 at 3:33 AM, Thijs Schreijer <thijs@xxxxxxxxxxxxxxxxx> wrote:
Hi,



Is there an easy way to print to the remote console?



For example an nginx/OpenResty server containing something like;



require(??mobdebug??).start()



for k,v in pairs(mylist)

require(??mobdebug??).echo(k,v)

end



require(??mobdebug??).stop()





where the `echo` function would print to the console window in the IDE.



Regards

Thijs

Other related posts: