I have a MacBook Pro as my work laptop. When I go home, I close the lid and take the laptop with me. Very often, the next time I open my laptop I find that the OS restarted "because of a problem". This reboot may happen several hours after the lid is closed, as the sound from my laptop back indicates.
What is the best way to understand / debug why this is happening? Can I get some useful information from log files?
The laptop is
MacBookPro11,3, with Intel Core i7 processor, and 16 GB of RAM. The programs that are usually running before crash are iTerm, Finder, Microsoft Outlook, and Chrome. I also run a Vagrant VM with a bunch of processes in it for work. My coworkers run exactly the same codebase and none of them is having the same problem.