[ZeroBrane Studio] Re: Debugging

  • From: "Chris Liles" <chris.liles@xxxxxxxxxxxxxxxxxx>
  • To: <zerobrane@xxxxxxxxxxxxx>
  • Date: Tue, 8 Jan 2013 19:48:01 +1100

Thanks for the very helpful repsonse Paul.

Regards
Chris

-----Original Message-----
From: zerobrane-bounce@xxxxxxxxxxxxx [mailto:zerobrane-bounce@xxxxxxxxxxxxx]
On Behalf Of Paul K
Sent: Tuesday, 8 January 2013 5:15 AM
To: zerobrane@xxxxxxxxxxxxx
Subject: [ZeroBrane Studio] Re: Debugging

Hi Chris,

> I'd certainly be interested to see something about coroutine debugging 
> - my initial fumbling attempts in this area make it very evident that 
> it's not entirely straightforward.

This is most definitely going to be covered. You can enable coroutine
debugging by adding require('mobdebug').on() to the particular coroutine you
want to debug or require('mobdebug').coro() to the beginning of your script
if you want to debug all coroutines. I have a brief description in the
MobDebug documentation:
https://github.com/pkulchenko/MobDebug/blob/master/examples/README
(see item 5 on the list).

Paul.

On Sun, Jan 6, 2013 at 1:14 AM, Chris Liles <chris.liles@xxxxxxxxxxxxxxxxxx>
wrote:
> I'd certainly be interested to see something about coroutine debugging 
> - my initial fumbling attempts in this area make it very evident that 
> it's not entirely straightforward.
>
> Regards
> Chris Liles


Other related posts: