I've been having this problem for a while and finally decided to ask, can this be fixed?
I have a break point in a class method and if I highlight a section of code that requires interpretation to run a quick watch I get this:
(formatted for readability, appears on one line)
eval('if (!class_exists("_DevsenseDebuggerTools"))
{
class DevsenseEvalError{
public $message;
function __construct($msg) {
$this->message = $msg;
}
}
class _DevsenseDebuggerTools
{
public static $ec;
public static $objectIds = array();
static function to($obj) {
$splId = spl_object_id($obj);
self::$objectIds[$splId] = WeakReference::create($obj);
return $splId;
}
static function gp($parentObj, $member, $static) {
$ref = new ReflectionProperty($parentObj, $member);
$ref->setAccessible(true);
return $ref->getValue($static ? null : $parentObj);
}
static function sp($parentObj, $member, $static, $value){
$ref = new ReflectionProperty($parentObj, $member);
$ref->setAccessible(true);
return $ref->setValue($static ? null : $parentObj, $value);
}
}
}')
Highlighted code that includes anything that requires interpretation, i.e. a native php function, concat of 2 string, etc. will produce this message.