You can also type in an expression by right-clicking inside the Expressions view and selecting "Add Watch Expression".
Important Note: There appears to be a bug when you try to launch a debug session with existing Watch Expressions. You get an error "Unexpected termination of script, debugging ended". To avoid this error, just delete all Watch expressions, using the "Remove All Expressions" button in the toolbar, prior to starting a new debug session.
To finish up, delete the Watch expression and press the red Terminate button to stop the debug session.
eclipse 下高度PHP经常会出现"Unexpected termination of script, debugging ended"错误, 这是eclipse 的一个BUG, 解决的办法很简单, 把所有的DEBUG Expressions删除掉就可以了.