Sometimes you need to dump the contents of one of Drupal's many huge arrays and the flood of output produced by dpr() or var_dump() actually causes your browser to freeze. Now what?
Try dumping to a file instead:
$logdata = print_r($form, true);
$fp = fopen("mydump.txt", "w");
fwrite($fp, $logdata);
fclose($fp);