Debugging raycasting