LiveDebugger.Structs.LvProcess (LiveDebugger v0.1.4)

View Source

This module provides a struct to represent a LiveView process.

  • nested? - whether the process is a nested LiveView process
  • debugger? - whether the process is a LiveDebugger process

Summary

Functions

Creates new LvProcess struct with the given pid by fetching the socket from the process state.

Returns the parent LvProcess of the given lv_process.

Types

t()

@type t() :: %LiveDebugger.Structs.LvProcess{
  debugger?: boolean(),
  embedded?: boolean(),
  module: module(),
  nested?: boolean(),
  parent_pid: pid() | nil,
  pid: pid(),
  root_pid: pid(),
  socket_id: String.t(),
  transport_pid: pid()
}

Functions

new(pid)

@spec new(pid :: pid()) :: t() | nil

Creates new LvProcess struct with the given pid by fetching the socket from the process state.

new(pid, socket)

@spec new(pid :: pid(), socket :: Phoenix.LiveView.Socket.t()) :: t()

parent(lv_process)

@spec parent(lv_process :: t()) :: t() | nil

Returns the parent LvProcess of the given lv_process.