#NEWLINE# def AddDebugSettings( self , config_name , command , environment = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , working_directory = '' ) : #NEWLINE# #INDENT# 'Adds a DebugSettings node to the user file for a particular config.\n\n    Args:\n      command: command line to run.  First element in the list is the\n        executable.  All elements of the command will be quoted if\n        necessary.\n      working_directory: other files which may trigger the rule. (optional)\n    ' #NEWLINE# command = _QuoteWin32CommandLineArgs ( command ) #NEWLINE# abs_command = _FindCommandInPath ( command [ 0 ] ) #NEWLINE# if ( environment and isinstance ( environment , dict ) ) : #NEWLINE# #INDENT# env_list = [ ( '%s="%s"' % ( key , val ) ) for ( key , val ) in environment . iteritems ( ) ] #NEWLINE# environment = ' ' . join ( env_list ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# environment = '' #NEWLINE# #UNINDENT# n_cmd = [ 'DebugSettings' , { #NEWLINE# #INDENT# 'Command' : abs_command , #NEWLINE# 'WorkingDirectory' : working_directory , #NEWLINE# 'CommandArguments' : ' ' . join ( command [ 1 : ] ) , #NEWLINE# 'RemoteMachine' : socket . gethostname ( ) , #NEWLINE# 'Environment' : environment , #NEWLINE# 'EnvironmentMerge' : 'true' , #NEWLINE# 'Attach' : 'false' , #NEWLINE# 'DebuggerType' : '3' , #NEWLINE# 'Remote' : '1' , #NEWLINE# 'RemoteCommand' : '' , #NEWLINE# 'HttpUrl' : '' , #NEWLINE# 'PDBPath' : '' , #NEWLINE# 'SQLDebugging' : '' , #NEWLINE# 'DebuggerFlavor' : '0' , #NEWLINE# 'MPIRunCommand' : '' , #NEWLINE# 'MPIRunArguments' : '' , #NEWLINE# 'MPIRunWorkingDirectory' : '' , #NEWLINE# 'ApplicationCommand' : '' , #NEWLINE# 'ApplicationArguments' : '' , #NEWLINE# 'ShimCommand' : '' , #NEWLINE# 'MPIAcceptMode' : '' , #NEWLINE# 'MPIAcceptFilter' : '' , #NEWLINE# #UNINDENT# } ] #NEWLINE# if ( config_name not in self . configurations ) : #NEWLINE# #INDENT# self . AddConfig ( config_name ) #NEWLINE# #UNINDENT# self . configurations [ config_name ] . append ( n_cmd )