Do they expect someone to work at cost for them? Running a company has overhead.
It sounds like they know what the code should do generally, but either didn’t design it to be debuggable or have no idea what they are doing.
Everyone has their own way of doing things and when you commit you need to make sure you deliver a quality product.
Bug hunting sucks, especially with other people’s design.