API: fixed errors in debugPoint() and debugText().