bitmat [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=95867 Lens <p> <table><tr><td> <a href="/bbs/?pid=147194#p"> <img src="/bbs/thumbs/pico64_lens-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=147194#p"> Lens 0.1.2</a><br><br> by <a href="/bbs/?uid=95867"> bitmat</a> <br><br><br> <a href="/bbs/?pid=147194#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Lens 0.1.2</h1> <p>Capture and view debugging information. This app will run and allow you to send it values to log and inspect. Since this runs as a separate process, you can still inspect log values even in the event of your program crashing.</p> <p>Supports all data types and includes the ability to inspect table values.</p> <h2>Usage</h2> <p>To use, include <code>&quot;libs/lens.lua&quot;</code> from the cart, and call <code>Lens.log()</code>.</p> <p>Otherwise just send a <code>&quot;log&quot;</code> event to the <code>lens</code> process:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>send_message(lens_pid, { event = &quot;log&quot;, value = &quot;log output&quot;, })</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>This is an early release to collect feedback, so please let me know if you find it useful or any issues you encounter.</p> https://www.lexaloffle.com/bbs/?tid=141911 https://www.lexaloffle.com/bbs/?tid=141911 Tue, 23 Apr 2024 14:46:28 UTC