# PDB segments

`powerline.segments.pdb.``current_code_name`()

  Displays name of the code object of the current frame

`powerline.segments.pdb.``current_context`()

  Displays currently executed context name

  This is similar to `current_code_name()`, but gives more details.

  Currently it only gives module file name if code_name happens to be `<module>`.

`powerline.segments.pdb.``current_file`(basename=True)

  Displays current file name

  Parameters: | basename (bool) – If true only basename is displayed.

`powerline.segments.pdb.``current_line`()

  Displays line number that is next to be run

`powerline.segments.pdb.``stack_depth`(full_stack=False)

  Displays current stack depth

  Result is relative to the stack depth at the time prompt was first run.

  Parameters: | full_stack (bool) – If true then absolute depth is used.