Your motherboard has a COM port header. You can add a COM port header to RS232 adapter to use it as a serial port which you can connect to another computer. To use the serial port, you have to enable it in BIOS. This might cause Mac OS to crash if you don't make a change to kernel extensions, or DSDT, or device-properties (see
https://www.tonymacx86.com/threads/...ort-on-gigabyte-z170x-running-10-11-4.191172/)
Or if your computer has a FireWire port (either from a PCIe card or from a Thunderbolt adapter) then you can connect that to another computer.
Then the system log (IOLog) and kernel printf or kprintf debug info can be logged from your Hackintosh to the other computer in realtime, so you can see what's happening even before MacOS has finished booting, or when it's shutting down, or sleep/wake.
To make the system log and kernel printf debug info go to the serial or firewire port, you need to add some boot args. This can easily be done with Clover by editing the config.plist.
debug=0x14e (this sets DB_LOG_PI_SCRN, DB_ARP, DB_KPRT, DB_NMI, DB_PRT. Some of those are optional)
serial=3 (serial console, serial keyboard, though I don't think you'll be using it to send keyboard commands to a console).
serialbaud=115200 (115.2 kbps baud rate)
io=0x00200000 (Optional, sets kIOLogSynchronous which causes IOLog commands to complete synchronously which might help to cleanup some debug output? or maybe not, I'm not sure it's useful. There are lots of other bits for io that might be useful for debugging kernel extensions.)
For Firewire, you would also add these (use "man fwkdp" in Terminal.app to get more information):
kdp_match_name=firewire
fwkpf=0x8000
fwkdp=0x8000
Remember you can google most of these boot arguments by using something like this:
"pe_parse_boot_argn serial" site:apple.com
"pe_parse_boot_argn io" site:apple.com
Then google for the variable used to store the result like this:
"serialmode" site:apple.com
"gIOKitDebug" site:apple.com
Other info:
https://developer.apple.com/library...Driver/DebuggingDrivers/DebuggingDrivers.html