both work.
The first option just sets the option on creation of the solver.
The second one enables you to change the verbosity between the calls.
Note that the output is printed in the terminal, you start Matlab from, not the Matlab command window.
It is not easy to debug using this output.
So, I would suggest to first carefully check your problem formulation, initialization and also try both HPIPM and qpOASES.