I am having a plugin with a custom function that throws an Exception. When I am calling the function inside a regular snippet/template with enabled debug mode, Whoops welcomes me and shows me what is going on (spoiler: already fixed the issue).
But when calling the same function inside a content representations template (in this case .json) the browser just prints “null” even though debug mode is enabled.
Am I missing here something?.. I would expect that Whoops will show up with enabled debug mode independent of the content representation format when there is an Exception?