Description
Used to be that you could call dump() and check the profiler without having a broken api response, with this change that is completely broken now. Not only do you get html in your response when the content-type is set to json , but the request is missing from the profiler so you can't even debug it properly.
For example, you can't dump() and check the events or doctrine queries for a RESTful request anymore, is this really intended behaviour?
Also in some cases the output of dump() is way too big to be handled in a api doc interface such as Swagger or NelmioApiDoc and breaks the browser where you could just view the profiler otherwise and selectively choose among the various dump statements.
The VarDumper was a easy way to do debug things in a RESTful environment, now it's completely useless in that regard. Using rest clients (such as in phpstorm) and having it give you the corresponding profiler automatically was such a great feature, this no longer works if you want to do any debugging at the same time.