Debugger: Improve detection of debuggers in legacy configuration

There is a wrong assumption there that ids start with '{'.

Change-Id: I8d753c1b67cfe250435711eab8db9f6dc576195d
Reviewed-by: hjk <hjk121@nokiamail.com>