johnd0e

Results 568 comments of johnd0e

> what do you mean by "is debug on"? Is debug hook set or not (for current coroutine). So after `mobdebug.on()` it will be `true`, and after `mobdebug.off()` — `false`...

> How would you use it? I want to control debugging from client side. > I can probably create a function (`ison` or something similar) if the hook is on...

> Mobdebug hides the difference and does the right thing I see special logic here: https://github.com/pkulchenko/MobDebug/blob/master/src/mobdebug.lua#l515 > You may try to expose isrunning and see if it works for you...

> I can probably create a function (ison or something similar) that returns true if the hook is on for the current coroutine, false if the debugging is on for...

You mean that when "connected and off everywhere" `debug.gethook` should be not `nil`? Is it right for non-luajit?

> you mean some special option like require('mobdebug').allowall? Exactly. > You don't like the fact that coro() rewrites coroutine.create? I do not like it just because it is redundant entity...

> If we do this for LuaJIT, you wouldn't need #18 at all In fact I am already doing without #18 (using own `coro` implementation in my code). So think...

**Данный PR создан исключительно как proof-of-concept этой идеи: https://bugs.farmanager.com/view.php?id=3796, и (в текущем виде) предназначен не для слияния, а для того чтобы начать предметное обсуждение.** Дискуссионные моменты реализации: - Любое нестандартное...

Абсолютно согласен что можно. Однако с одной стороны какой-то маргинальный модуль, во многом повторяющий код из луамакро, и требующий отдельной установки (а то и выбора из нескольких конкурирующих реализаций). А...

Хотелось бы иметь эту функциональность именно из коробки, в данном случае считаю что это оправданно. Как недавно обсуждалось на форуме, один из основных юзкейсов - предоставление интерфейса для плагинов. Опираясь...