Twine
Trace calls in Elixir processes
Install / Use
/learn @ollien/TwineREADME
Twine
Twine is a tracing tool based on Ferd's wonderful recon_trace.
recon_trace is great for providing a safe way to debug live BEAM systems,
but can be a little unweildy, especially on Elixir systems. Twine is a wrapper
for recon_trace, and adds a familiar, friendly, syntax.

Usage
In a remote shell for your running application,
require Twine
Twine.print_calls(MyModule.my_function(_arg1, _arg2), 3)
Just like recon_trace, this will print the first three calls to
MyModule.my_function/2, but will do so in Elixir syntax.
You can even match specific calls by using pattern matching. This will
print all calls to handle_call for the :ping call.
require Twine
Twine.print_calls(MyModule.handle_call(:ping, _from, _state), 3)
More details are provided in the hex docs.
Installation
def deps do
[
{:twine, "~> 0.5.0"}
]
end
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
