Is there a way to debug an Nlopt optimization

It looks like you solved the problem in this post: what was it?