class Godot::Debugger::LldbDriver

Defined in:

libgodot/debugger/lldb_driver.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(lldb_path : String = "lldb") #

[View source]

Class Method Detail

def self.available?(custom_path : String | Nil = nil) : Bool #

Returns true if LLDB is available


[View source]
def self.find_lldb(custom_path : String | Nil = nil) : String | Nil #

Discovers the lldb executable on the system


[View source]

Instance Method Detail

def attach(pid : Int64) : Bool #

Starts the LLDB subprocess and attaches to a target PID


[View source]
def attached_pid : Int64 | Nil #

[View source]
def breakpoints : Hash(Int32, BreakpointInfo) #

[View source]
def continue_exec : Void #

Resumes execution


[View source]
def detach : Void #

Detaches LLDB cleanly


[View source]
def evaluate(expr : String) : Void #

Evaluates an expression


[View source]
def interrupt_exec : Void #

Interrupts/pauses execution


[View source]
def on_continue : Proc(Nil) | Nil #

[View source]
def on_continue=(on_continue : Proc(Nil) | Nil) #

[View source]
def on_exit : Proc(Int32, Nil) | Nil #

[View source]
def on_exit=(on_exit : Proc(Int32, Nil) | Nil) #

[View source]
def on_output : Proc(String, Nil) | Nil #

[View source]
def on_output=(on_output : Proc(String, Nil) | Nil) #

[View source]
def on_stop : Proc(StopInfo, Nil) | Nil #

[View source]
def on_stop=(on_stop : Proc(StopInfo, Nil) | Nil) #

[View source]
def parse_frame_line(line : String) : StackFrame | Nil #

Extracts StackFrame from LLDB frame line e.g.: " frame #0: 0x00007ff812345678 game.dll`Player#_physics_process(self=0x...) at player.cr:42:5"


[View source]
def parse_stop_info(line : String) : StopInfo #

Parses stop event string into StopInfo


[View source]
def poll : Void #

Pumps background events non-blockingly on the Godot main thread


[View source]
def remove_breakpoint(id : Int32) : Bool #

Removes a breakpoint by ID


[View source]
def request_backtrace : Void #

Requests call stack backtrace


[View source]
def request_variables : Void #

Requests local variables


[View source]
def send_command(cmd : String) : Void #

Sends a raw command line to LLDB


[View source]
def set_breakpoint(file : String, line : Int32) : BreakpointInfo #

Sets a breakpoint at the given file and line


[View source]
def state : DriverState #

[View source]
def step_into : Void #

Step into function


[View source]
def step_out : Void #

Step out of function


[View source]
def step_over : Void #

Step over (next source line)


[View source]