Code does not work when 'run' ing it but works fine while debugging?

Printable View