[ZeroBrane Studio] Re: Suppress 'WARNING' messages query

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Mon, 4 Nov 2013 08:19:43 -0800

Hi Rich,

> First of all, ZeroBrane is a fantastic IDE.  I've just switched from Glider 
> IDE and have no intention of switching back :) so, great job!

Thank you for the feedback; glad ZBS works well for you!

> Second of all, I know that this is a limitation with Corona SDK rather than 
> ZeroBrane IDE, but would you know how I would suppress these sorts of warning 
> messages from appearing in the Output when I run/debug Corona:

It may be possible, but the mechanism may be different depending on
your platform. What OS are you running this on? What code do you have
that generates these messages?

You may try adding the following line to cfg/user.lua:

debugger.outputfilter = function(m) return
(m:gsub('[^\r\n]*WARNING:[^\r\n]+[\r\n]','')) end

I couldn't test it as I couldn't reproduce the same message. If this
doesn't work, there is another mechanism, but this would be the
simplest option.

Paul.

Other related posts: