parameters: (self, config_name, command, environment = {},
                         working_directory="")
docstring: Adds a DebugSettings node to the user file for a particular config.
  
      Args:
        command: command line to run.  First element in the list is the
          executable.  All elements of the command will be quoted if
          necessary.
        working_directory: other files which may trigger the rule. (optional)
docstring_summary: Adds a DebugSettings node to the user file for a particular config.
docstring_tokens: Adds a DebugSettings node to the user file for a particular config .
function: def AddDebugSettings(self, config_name, command, environment = {},
                         working_directory=""):
      """Adds a DebugSettings node to the user file for a particular config.
  
      Args:
        command: command line to run.  First element in the list is the
          executable.  All elements of the command will be quoted if
          necessary.
        working_directory: other files which may trigger the rule. (optional)
      """
      command = _QuoteWin32CommandLineArgs(command)
  
      abs_command = _FindCommandInPath(command[0])
  
      if environment and isinstance(environment, dict):
        env_list = ['%s="%s"' % (key, val)
                    for (key,val) in environment.iteritems()]
        environment = ' '.join(env_list)
      else:
        environment = ''
  
      n_cmd = ['DebugSettings',
               {'Command': abs_command,
                'WorkingDirectory': working_directory,
                'CommandArguments': " ".join(command[1:]),
                'RemoteMachine': socket.gethostname(),
                'Environment': environment,
                'EnvironmentMerge': 'true',
                # Currently these are all "dummy" values that we're just setting
                # in the default manner that MSVS does it.  We could use some of
                # these to add additional capabilities, I suppose, but they might
                # not have parity with other platforms then.
                'Attach': 'false',
                'DebuggerType': '3',  # 'auto' debugger
                'Remote': '1',
                'RemoteCommand': '',
                'HttpUrl': '',
                'PDBPath': '',
                'SQLDebugging': '',
                'DebuggerFlavor': '0',
                'MPIRunCommand': '',
                'MPIRunArguments': '',
                'MPIRunWorkingDirectory': '',
                'ApplicationCommand': '',
                'ApplicationArguments': '',
                'ShimCommand': '',
                'MPIAcceptMode': '',
                'MPIAcceptFilter': ''
               }]
  
      # Find the config, and add it if it doesn't exist.
      if config_name not in self.configurations:
        self.AddConfig(config_name)
  
      # Add the DebugSettings onto the appropriate config.
      self.configurations[config_name].append(n_cmd)
function_tokens: def AddDebugSettings ( self , config_name , command , environment = { } , working_directory = "" ) : command = _QuoteWin32CommandLineArgs ( command ) abs_command = _FindCommandInPath ( command [ 0 ] ) if environment and isinstance ( environment , dict ) : env_list = [ '%s="%s"' % ( key , val ) for ( key , val ) in environment . iteritems ( ) ] environment = ' ' . join ( env_list ) else : environment = '' n_cmd = [ 'DebugSettings' , { 'Command' : abs_command , 'WorkingDirectory' : working_directory , 'CommandArguments' : " " . join ( command [ 1 : ] ) , 'RemoteMachine' : socket . gethostname ( ) , 'Environment' : environment , 'EnvironmentMerge' : 'true' , # Currently these are all "dummy" values that we're just setting # in the default manner that MSVS does it.  We could use some of # these to add additional capabilities, I suppose, but they might # not have parity with other platforms then. 'Attach' : 'false' , 'DebuggerType' : '3' , # 'auto' debugger 'Remote' : '1' , 'RemoteCommand' : '' , 'HttpUrl' : '' , 'PDBPath' : '' , 'SQLDebugging' : '' , 'DebuggerFlavor' : '0' , 'MPIRunCommand' : '' , 'MPIRunArguments' : '' , 'MPIRunWorkingDirectory' : '' , 'ApplicationCommand' : '' , 'ApplicationArguments' : '' , 'ShimCommand' : '' , 'MPIAcceptMode' : '' , 'MPIAcceptFilter' : '' } ] # Find the config, and add it if it doesn't exist. if config_name not in self . configurations : self . AddConfig ( config_name ) # Add the DebugSettings onto the appropriate config. self . configurations [ config_name ] . append ( n_cmd )