This is a general (and probably very naive) question about setting and using breakpoints in debugging. (I happen to be using PhpStorm and Xdebug to debug a php web page, but I think the question may be more general than that).
I've noticed that if I want to evaluate a variable while debugging, I have to set a breakpoint on a line after the variable I want to evaluate. But what if there are no further lines of code in the file? What is the "best practice" for that situation? Currently, I'm just adding echo ""; after my variable line, and breaking on that. That is working, but surely that's not the right way, is it?