Is there a way to debug code in Setup? Trying to use a for

My bad.
I corrected in original post. Should be

for (LEDPin = 2; LEDPin < 43; LEDpin = LEDPin +1)