setDebugArgs method

void setDebugArgs(
  1. String revised
)

Reset the arguments to those specified in revised.

This is useful during dubugging, if you prefer not to use VS Code's configuration files. It allows you to type a set of arguments in a string, just as you would on the command line.

For example, in your project's bin/xxx_afib.dart, you could use:

  args.setDebugArgs("generate query TestQuery --result-type String")

To debug the command that generates a query.

Implementation

void setDebugArgs(String revised) {
  final result = StringBuffer();
  result.writeln("********* ATTENTION: USING DEBUG ARGUMENTS: '$revised' ******************************");
  final colorized = Colorize(result.toString()).apply(Styles.YELLOW);
  // ignore: avoid_print
  print(colorized);

  final parsed = parseArgs(revised);
  args = <String>[];
  args.addAll(parsed);
}