debug&search text func