Improved debugging information when loading scrips