1

After a dozen years of using a simple shareware text editor to write PHP, I'm finally jumping into the world of IDEs like it's 1999.

I'm playing around with debugging in NetBeans using XDebug. I see how I can set breakpoints or step through each line in the code and see what values are assigned to variables. Very cool!

However, I don't see what happens to anything that's been echoed or sent to the buffer.

Is there a way to see this, or does NetBeans assume that I'm assigning all of my strings to variables to be output at the end (which is how I usually do it anyway)?

2 Answers 2

2

You can use ob_start() to buffer your output, and then copy it to a variable using ob_get_contents().

Sign up to request clarification or add additional context in comments.

Comments

0

you can also use the IDE and add the ob_get_contents() expression

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.