#Know Your Coroutines

1 messages · Page 1 of 1 (latest)

lavish plank
#

This is a simple plugin for LabAPI that adds some useful commands for debugging MEC coroutines, fixes bugs in the MEC library, and allows you to track coroutine exceptions

Source Code: https://github.com/CosmosZvezdo4kin/KnowYourCoroutines

Latest Release: https://github.com/CosmosZvezdo4kin/KnowYourCoroutines/releases/latest

What is this plugin for ?

For fixing errors in MEC library and more accurate debugging of MEC coroutines. And the purposes of such debugging can be as follows:

  • Check for unnecessary duplicate coroutines
  • Check the TPS costs of a coroutine
  • Track exceptions in coroutines
  • You need to know the name of the running coroutine from the CancelWith method
lavish plank
#

Know Your Coroutines

lucid elbow
#

@lavish plank having an issue when doing coroutine list all

[2025-06-19 14:27:26.773 +00:00] Command execution failed! Error: System.NullReferenceException: Object reference not set to an instance of an object
                                   at MEC.Timing.GetDebugName (MEC.CoroutineHandle handle) [0x00051] in <907db9b8bd144382918df78d2897b4b7>:0 
                                   at MEC.CoroutineHandle.ToString () [0x00022] in <907db9b8bd144382918df78d2897b4b7>:0 
                                   at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x0037e] in <069d7b80a3914a08b6825aa362b07f5e>:0 
                                   at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <069d7b80a3914a08b6825aa362b07f5e>:0 
                                   at System.String.Format (System.String format, System.Object arg0, System.Object arg1, System.Object arg2) [0x0000a] in <069d7b80a3914a08b6825aa362b07f5e>:0 
                                   at KnowYourCoroutines.Commands.List+<>c__DisplayClass8_0.<Execute>b__3 (System.Collections.Generic.KeyValuePair`2[TKey,TValue] x) [0x000c6] in <7c7dfeb1798e4248bb494dfc51d99666>:0 
                                   at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () [0x00048] in <fd1d0d7d3ab340b2ac4af4d8f373b6c7>:0 
                                   at System.String.Join (System.String separator, System.Collections.Generic.IEnumerable`1[T] values) [0x00015] in <069d7b80a3914a08b6825aa362b07f5e>:0 
                                   at KnowYourCoroutines.Commands.List.Execute (System.ArraySegment`1[T] arguments, CommandSystem.ICommandSender sender, System.String& response) [0x001ce] in <7c7dfeb1798e4248bb494dfc51d99666>:0 
                                   at ParentCommand.Execute (System.ArraySegment`1[T] arguments, CommandSystem.ICommandSender sender, System.String& response) [0x00041] in <d094332078014275aa2a515888e62f26>:0 
                                   at (wrapper dynamic-method) RemoteAdmin.CommandProcessor.RemoteAdmin.CommandProcessor.ProcessQuery_Patch1(string,CommandSender)```
lavish plank
lavish plank
lucid elbow
#

alr

lavish plank
lucid elbow
#

running works

lavish plank
#

1.0.3

  • Added 2 new categories to the list command (valid and invalid)
  • The list command now displays ProcessIndex in the result
  • Fixed NRE with list command

Download new release here

#

@lucid elbow 👆

#

this will fix the problem (probably)

lucid elbow
#

thanks :D

lavish plank
winter mortar
#

This is SO FIRE

lavish plank
#

1.0.5

  • Added support for extended descriptions for Delegate values (thanks to @orchid trout)
  • Added support for extended descriptions for UnityEngine.GameObject values
  • Bumped required LabAPI version

https://github.com/CosmosZvezdo4kin/KnowYourCoroutines/releases/tag/1.0.5

GitHub

Added support for extended descriptions for Delegate values (thanks to @R2kip)
Added support for extended descriptions for UnityEngine.GameObject values
Bumped required LabAPI version

lavish plank
whole aurora
signal needle
whole aurora
#

a certified cyksas moment

signal needle
#

I hate coroutines

clever coral
signal needle
lavish plank
stray gazelle
#

Kogda budet KnowYourPatch?

#

Ladno, sdelaiu sam

pale storm
#

Wow