How can I make apigility display exception trace in ApiProblem responses?

pdizz

In the module.config.php files for zf-api-problem and zf-rest it says you can override 'display_exceptions' in the application config to get exception stack traces in the response.

'view_manager' => array(
    // Enable this in your application configuration in order to get full
    // exception stack traces in your API-Problem responses.
    'display_exceptions' => false,
),

I have display_exceptions set to true in my Application module.config.php (from the skeleton app), however it gets overwritten when all the configs are merged. When I look at the state of the config in \ZF\ApiProblem\Listener\SendApiResponseListener, where the ApiProblemResponse is being constucted, 'display_exceptions' is set to false.

Is it merging in zf-api-problem and zf-rest configs after the application config and overwriting it?

How can I enable display_exceptions without changing it in the vendor modules?

Édipo Costa Rebouças

When you enable development mode, The apigility copy The ./config/development.config.php.dist to ./config/development.config.php. This is merged with another configs. So, edit The .dist file, and disable and enable the development mode.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I make apigility display exception trace in ApiProblem responses?

From Dev

How can I display Exception trace in laravel console command?

From Dev

How can I make program print a stack trace automatically when an Exception occurs in Android

From Dev

How can I create a resource list on Apigility?

From Dev

How can I make inputs display inline?

From Dev

How can an Exception be created/thrown with no stack trace?

From Java

How can I get a JavaScript stack trace when I throw an exception?

From Dev

In Python how can I raise a custom exception and do a trace back as well?

From Dev

How can I make JSON responses be pretty-printed when using Rook?

From Dev

How can I make a button print in the display I created? (Tkinter)

From Dev

How can I make my parser fail gracefully if an exception is thrown?

From Dev

How can I make an incorrect pointcut expression throw an exception?

From Dev

How can I make an Ada Exception visible outside a module?

From Java

How can I convert a stack trace to a string?

From Dev

How can I trace MY javascript?

From Dev

How can I trace strace -c errors?

From Dev

How can I view xray trace in ELK?

From Dev

How can I trace strace -c errors?

From Dev

How can I make a FPGA prototype with a touch-screen display?

From Java

How can I make my picture display on a half of the screen?

From Dev

How can I make LightDM the default display manager?

From Dev

How can I make an empty div display between the header and footer?

From Dev

How can I make a for loop that will display 8 TextFields in javaFx

From Dev

How can I make LightDM the default display manager?

From Dev

How can I make a <select> in a popover display the selected option on console?

From Dev

How can I make this program display a counter a different way?

From Dev

How can I make ls only display files?

From Dev

How can I make a display all white for illumination?

From Dev

How can I make windows 10 to display the battery status of the laptop

Related Related

  1. 1

    How can I make apigility display exception trace in ApiProblem responses?

  2. 2

    How can I display Exception trace in laravel console command?

  3. 3

    How can I make program print a stack trace automatically when an Exception occurs in Android

  4. 4

    How can I create a resource list on Apigility?

  5. 5

    How can I make inputs display inline?

  6. 6

    How can an Exception be created/thrown with no stack trace?

  7. 7

    How can I get a JavaScript stack trace when I throw an exception?

  8. 8

    In Python how can I raise a custom exception and do a trace back as well?

  9. 9

    How can I make JSON responses be pretty-printed when using Rook?

  10. 10

    How can I make a button print in the display I created? (Tkinter)

  11. 11

    How can I make my parser fail gracefully if an exception is thrown?

  12. 12

    How can I make an incorrect pointcut expression throw an exception?

  13. 13

    How can I make an Ada Exception visible outside a module?

  14. 14

    How can I convert a stack trace to a string?

  15. 15

    How can I trace MY javascript?

  16. 16

    How can I trace strace -c errors?

  17. 17

    How can I view xray trace in ELK?

  18. 18

    How can I trace strace -c errors?

  19. 19

    How can I make a FPGA prototype with a touch-screen display?

  20. 20

    How can I make my picture display on a half of the screen?

  21. 21

    How can I make LightDM the default display manager?

  22. 22

    How can I make an empty div display between the header and footer?

  23. 23

    How can I make a for loop that will display 8 TextFields in javaFx

  24. 24

    How can I make LightDM the default display manager?

  25. 25

    How can I make a <select> in a popover display the selected option on console?

  26. 26

    How can I make this program display a counter a different way?

  27. 27

    How can I make ls only display files?

  28. 28

    How can I make a display all white for illumination?

  29. 29

    How can I make windows 10 to display the battery status of the laptop

HotTag

Archive