User Profile


person axelson   starPREMIUM

Member since 09/12/2019


Karma

8

Public Bits


2
Posted by axelson 2 years ago
This will help you write a snippet like this inside a pipeline: find_items() |> IO.inspe...
        
# -*- mode: snippet -*-
# name: Piped Inspect
# key: pin
# --
|> IO.inspect(label: "$2$1 (`(buffer-na...        
      
MORE

2
Posted by axelson 3 years ago
Trace all calls to a module without any external libraries
        
:dbg.tracer()
# Or replace the `_` with a function name to trace just that function
:dbg.tpl(MyModule...        
      
MORE

1
Posted by axelson 4 years ago
        
iex> :code.which Tuple
'/Users/jason/.asdf/installs/elixir/1.8.1-otp-21/bin/../lib/elixir/ebin/Elixir...        
      
MORE

1
Posted by axelson 4 years ago
Trace garbage collection of a process with pid `pid`.
        
:dbg.tracer(); :dbg.p(pid, [:garbage_collection])        
      

2
Posted by axelson 4 years ago
        
System.unique_integer([:positive, :monotonic])