Skip to main content

inline_values_in_range

Function inline_values_in_range 

Source
pub fn inline_values_in_range(source: &str, range: Range) -> Vec<InlineValue>
Expand description

Return InlineValueVariableLookup entries for every $variable occurrence within range in source.

The debug adapter uses these to look up live variable values from the runtime when execution is paused at a breakpoint. We return every PHP variable reference visible in the viewport so the adapter can fill them all in without the language server needing debugger integration.