def cmd_debug(self, argv, help):
parser = argparse.ArgumentParser(<EOL>prog="<STR_LIT>" % self.progname,<EOL>description=help,<EOL>)<EOL>instances = self.instances<EOL>parser.add_argument("<STR_LIT>", nargs=<NUM_LIT:1>,<EOL>metavar="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>choices=sorted(instances))<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT>",<EOL>action="<STR_LIT:store_true>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT:-c>", "<STR_LIT>", dest="<STR_LIT>",<EOL>action="<STR_LIT:store_true>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT>",<EOL>action="<STR_LIT:store_true>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT>",<EOL>action="<STR_LIT:store_true>", help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", "<STR_LIT>", nargs="<STR_LIT:*>", type=str,<EOL>dest="<STR_LIT>", metavar="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>args = parser.parse_args(argv)<EOL>overrides = self._parse_overrides(args)<EOL>overrides['<STR_LIT>'] = self.instances<EOL>instance = instances[args.instance[<NUM_LIT:0>]]<EOL>if hasattr(instance, '<STR_LIT>'):<EOL><INDENT>startup_script = instance.startup_script(overrides=overrides, debug=True)<EOL>max_size = getattr(instance, '<STR_LIT>', <NUM_LIT:16> * <NUM_LIT>)<EOL>log.info("<STR_LIT>", len(startup_script['<STR_LIT>']), max_size)<EOL>if args.verbose:<EOL><INDENT>if '<STR_LIT>' in instance.config:<EOL><INDENT>if startup_script['<STR_LIT>'] == startup_script['<STR_LIT>']:<EOL><INDENT>log.info("<STR_LIT>")<EOL><DEDENT>elif args.raw:<EOL><INDENT>log.info("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>log.info("<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>log.info("<STR_LIT>")<EOL><DEDENT><DEDENT>if args.raw:<EOL><INDENT>print(startup_script['<STR_LIT>'], end='<STR_LIT>')<EOL><DEDENT>elif args.verbose:<EOL><INDENT>print(startup_script['<STR_LIT>'], end='<STR_LIT>')<EOL><DEDENT><DEDENT>if args.console_output:<EOL><INDENT>if hasattr(instance, '<STR_LIT>'):<EOL><INDENT>print(instance.get_console_output())<EOL><DEDENT>else:<EOL><INDENT>log.error("<STR_LIT>")<EOL><DEDENT><DEDENT>if args.interactive:  <EOL><INDENT>import readline<EOL>from pprint import pprint<EOL>local = dict(<EOL>ctrl=self,<EOL>instances=self.instances,<EOL>instance=instance,<EOL>pprint=pprint)<EOL>readline.parse_and_bind('<STR_LIT>')<EOL>try:<EOL><INDENT>import rlcompleter<EOL>readline.set_completer(rlcompleter.Completer(local).complete)<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>__import__("<STR_LIT:code>").interact(local=local)<EOL><DEDENT>
Prints some debug info for this script