debugPrintSynchronously function

void debugPrintSynchronously (String message, { int wrapWidth })

Alternative implementation of debugPrint that does not throttle. Used by tests.

Implementation

void debugPrintSynchronously(String message, { int wrapWidth }) {
  if (wrapWidth != null) {
    print(message.split('\n').expand<String>((String line) => debugWordWrap(line, wrapWidth)).join('\n'));
  } else {
    print(message);
  }
}