Prepare the function to dump DEX layout for debug.