Bird
0
0

If APP_DEBUG=true and an exception occurs, what will Laravel show?

medium📝 Predict Output Q5 of 15
Laravel - Configuration and Environment
If APP_DEBUG=true and an exception occurs, what will Laravel show?
ADetailed error page with exception message and stack trace
BA blank page with no information
CA simple error message without details
DRedirect to homepage silently
Step-by-Step Solution
Solution:
  1. Step 1: Check APP_DEBUG=true behavior

    Debug mode enabled means Laravel shows detailed error info for developers.
  2. Step 2: Confirm error display

    Laravel displays exception message, stack trace, and code snippets to help debugging.
  3. Final Answer:

    Detailed error page with exception message and stack trace -> Option A
  4. Quick Check:

    APP_DEBUG=true shows detailed error page [OK]
Quick Trick: True debug shows full error details for debugging [OK]
Common Mistakes:
  • Expecting simple or blank error pages with debug on
  • Thinking app redirects on error automatically
  • Confusing debug mode with error logging

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Laravel Quizzes