Of course there is a debug mode. Doesn't every Unix program have one?
To get into debug mode from the Linux command line you can specify '-d' or '--debug'. From interactive mode you can use the 'd' command at the top level.
The follwing commands are added to the top level commands:
a toggle abbreviate flag p toggle physical flag c toggle compute size flag d toggle debug flag x examine block n of device
Expert command mode looks like:
Notes: The expert commands are for low level and experimental features. These commands are available only when debug mode is on. Commands are: h print help d dump block n p print the partition table P (show data structures - debugging) f full display of nth entry v validate map e examine patch partition q return to main edit menu Q quit without saving changes