What should I do to help my basil?

I'm very new to gardening and I'm trying to grow my favorite plant basil I noticed that they are developing brown spots on them and I'm pretty sure I have a Caterpillar nibbling on them ): I have them in partial shade I just moved them to full sun today