The stock market loves debt free companies. They are perceived to be safe stocks. Large institutional funds especially have a preference for the stocks of such companies.
However, that doesn't mean you should shun companies which have high debt. Debt can help companies grow and expand. It's only when the debt is unserviceable that the company will find itself in trouble.