def attach(self, program=None, pid=None, waitFor=None, trace=None, initCommands=None, preRunCommands=None, stopCommands=None, exitCommands=None, attachCommands=None, coreFile=None):
    'Build the default Makefile target, create the VSCode debug adaptor,\n           and attach to the process.\n        '

    def cleanup():
        self.vscode.request_disconnect(terminateDebuggee=True)
        self.vscode.terminate()
    self.addTearDownHook(cleanup)
    self.vscode.request_initialize()
    response = self.vscode.request_attach(program=program, pid=pid, waitFor=waitFor, trace=trace, initCommands=initCommands, preRunCommands=preRunCommands, stopCommands=stopCommands, exitCommands=exitCommands, attachCommands=attachCommands, coreFile=coreFile)
    if (not (response and response['success'])):
        self.assertTrue(response['success'], ('attach failed (%s)' % response['message']))
Build the default Makefile target, create the VSCode debug adaptor,
and attach to the process.
def attach(self, program=None, pid=None, waitFor=None, trace=None, initCommands=None, preRunCommands=None, stopCommands=None, exitCommands=None, attachCommands=None, coreFile=None):
    'Build the default Makefile target, create the VSCode debug adaptor,\n           and attach to the process.\n        '

    def cleanup():
        self.vscode.request_disconnect(terminateDebuggee=True)
        self.vscode.terminate()
    self.addTearDownHook(cleanup)
    self.vscode.request_initialize()
    response = self.vscode.request_attach(program=program, pid=pid, waitFor=waitFor, trace=trace, initCommands=initCommands, preRunCommands=preRunCommands, stopCommands=stopCommands, exitCommands=exitCommands, attachCommands=attachCommands, coreFile=coreFile)
    if (not (response and response['success'])):
        self.assertTrue(response['success'], ('attach failed (%s)' % response['message']))