AFAICT, it’s not possible to force this currently.
Frequently the application trace is inadequate and you need the full trace to get to the bottom of the problem. For example, let’s say your layout template calls non application (3rd party gem) code which raises. The application trace will consist of a single entry, the template being rendered.
actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb