[Guide] Using Grbl to debug your homing switches

Check this thread: