Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
调试Dartium中的Dart-断点关键字?_Dart_Dartium - Fatal编程技术网

调试Dartium中的Dart-断点关键字?

调试Dartium中的Dart-断点关键字?,dart,dartium,Dart,Dartium,在Chrome开发工具中调试Javascript时,使用保留关键字“debugger”会在开发工具打开时导致断点命中。在Dartium中是否有调试dart代码的等效程序 自Dart SDK 1.11.0以来,新库中有一个函数可通过代码触发断点。您可以使用when参数传递可选条件,并提供可选消息 import 'dart:developer'; void main() { debugger(); print('Not reached when a debugger is attached

在Chrome开发工具中调试Javascript时,使用保留关键字“debugger”会在开发工具打开时导致断点命中。在Dartium中是否有调试dart代码的等效程序

自Dart SDK 1.11.0以来,新库中有一个函数可通过代码触发断点。您可以使用
when
参数传递可选条件,并提供可选消息

import 'dart:developer';

void main() {
  debugger();
  print('Not reached when a debugger is attached till the execution is continued');
}
如果编译为JavaScript,则使用
调试器
关键字