Set up debugging environment