def METHOD_NAME(self):
    """Return a list of Debug Mode command line options for LilyPond."""
    args = []
    # 'automatic' widgets
    for mode in layoutcontrol.modelist():
        if self.checkboxes[mode].isChecked():
            args.append(layoutcontrol.option(mode))
    # manual widgets
    if self.CBcustomfile.isChecked():
        file_to_include = self.LEcustomfile.text()
        args.append('-ddebug-custom-file=' + file_to_include)
    # if at least one debug mode is used, add the directory with the
    # preview-mode files to the search path
    if args:
        args.insert(0, '-I' + layoutcontrol.__path__[0])
        # File that conditionally includes different formatters
        args.insert(1, '-dinclude-settings=debug-layout-options.ly')
    if self.CBpointandclick.isChecked():
        args.insert(0, '-dpoint-and-click')
    else:
        args.insert(0, '-dno-point-and-click')
    if self.CBverbose.isChecked():
        args.insert(0, '--verbose')
    if self.CBcustomfile.isChecked():
        file_to_include = self.LEcustomfile.text()
        if file_to_include:
            args.append('-ddebug-custom-file=' + file_to_include)
    return args