move dbg_ports() from apps/menu_debug.c to target tree. FS#11712 by me.