Spec-Zone.ru › Dart 2

dart:developer

debugger function

bool debugger(
  1. {bool when = true,
  2. String? message}
)

If when is true, stop the program as if a breakpoint were hit at the following statement.

Returns the value of when. Some debuggers may display message.

NOTE: When invoked, the isolate will not return until a debugger continues execution. When running in the Dart VM, the behaviour is the same regardless of whether or not a debugger is connected. When compiled to JavaScript, this uses the "debugger" statement, and behaves exactly as that does.

Implementation

external bool debugger({bool when = true, String? message});

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-developer/debugger.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API