Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Debugging > Using the Debugger - Pg. 155

v v Shows versions of loaded modules. V V [pkg [vars]] Displays all (or some) variables in package pkg using a data pretty- printer (which displays keys and their values for hashes, makes control characters printable, prints nested data structures in a legible fashion, and so on). pkg defaults to the main package. Make sure you enter the identifiers without a type specifier such as $ or @ , like this: V DB filename line Language Basics In place of a variable name, you can use ~pattern or !pattern to print existing variables with names that either match or don't match the specified regular expression. w w [line] Lists a window of a few lines around the given line , or lists the current line if line is omitted. X X [vars]