view span for debug

View the contents of a span.


> view span (start) (end)


  • start: start of the span
  • end: end of the span


This command is meant for debugging purposes. It allows you to view the contents of nushell spans. One way to get spans is to pipe something into 'debug --raw'. Then you can use the Span { start, end } values as the start and end values for this command.


View the source of a span. 1 and 2 are just example values. Use the return of debug -r to get the actual values

> some | pipeline | or | variable | debug -r; view span 1 2