Meditation

If you want to better understand yourself, you must become better at observing your mind.

And to get better at anything take practice. And when it comes to the mind, the best practice for mindfulness is meditation.