public boolean addWatch(long varId, String varName, int type, int tag, int isolateId) throws NoResponseException, NotConnectedException, NotSupportedException
{
// TODO check for NoResponse, NotConnected
if (!supportsWatchpoints(isolateId))
throw new NotSupportedException(PlayerSessionManager.getLocalizationManager().getLocalizedTextString("watchpointsNotSupported")); //$NON-NLS-1$
varName = getRawMemberName(varId, varName, isolateId);
DMessage dm = DMessageCache.alloc(4+DMessage.getSizeofPtr()+DMessage.getStringLength(varName)+1);
dm.setType(DMessage.OutAddWatch2);
dm.setTargetIsolate(isolateId);