Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9166419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:08:57+00:00 2026-06-17T15:08:57+00:00

Ever since PHP4 and Cake 1.3 I have been using debug($data); to debug things

  • 0

Ever since PHP4 and Cake 1.3 I have been using debug($data); to debug things such as model output in CakePHP.

However, since upgrading to PHP5.4, I have noticed that debug($data) doesn’t always seem to work. For example, today I did a straightforward $data = $this->Model->find('all'); and the contents of debug($data); appears to be empty. No error, just a reference in the HTML output to the fact that I called debug and the line number and then no debug output.

However, if I run Debugger::dump($data); on the exact same find, it works find and I see the entire output.

It seems to only be happening when $data has a significant amount of data (say, 100+ records), but I worked with datasets this size prior to PHP5.4 and there was never a problem and there are no errors, inline or in the apache/php logs indicating that there are any memory issues and I have debugging set to 3.

Does anyone have any idea why this is? I can obviosly starting using Debugger::dump($data); easily but it’s just a little extra to have to try out each time and I’d like to know why I can’t just use deubg(); anymore.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:08:58+00:00Added an answer on June 17, 2026 at 3:08 pm

    This can happen with non-utf8 encoded data in your db records – if the rest of your application is UTF-8 that is.
    debug() will then just output “nothing”. var_dump(), print_r() and other php internal methods should still print the output, though.

    You can usually re-encode them to utf8 using iconv() etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I guess I have been using the Web Site model ever since .NET 2.0
Ever since the publication of Enterprise Integration Patterns people have been using the notation
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
Ever since I discovered sockets, I've been using the nonblocking variants, since I didn't
Ever since I started programming this has been something I have been curious about.
Ever since I moved from VB6 to VB.NET somewhere in 2005, I've been using
Ever since reading Clean Code I have been trying to keep my code descriptive
Ever since I started using an ORM for my day to day data access.
Been running into a problem ever since I started using rvm to manage my
Well I have been thinking about this for a while, ever since I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.