490 unplanned=True, |
490 unplanned=True, |
491 clType=None, |
491 clType=None, |
492 forProject=False, |
492 forProject=False, |
493 runInConsole=False, |
493 runInConsole=False, |
494 venvName="", |
494 venvName="", |
495 workingDir=None, |
495 workingDir="", |
496 configOverride=None, |
496 configOverride=None, |
|
497 startRemote=False |
497 ): |
498 ): |
498 """ |
499 """ |
499 Public method to start a debug client. |
500 Public method to start a debug client. |
500 |
501 |
501 @param unplanned flag indicating that the client has died |
502 @param unplanned flag indicating that the client has died (defaults to True) |
502 @type bool |
503 @type bool (optional) |
503 @param clType type of client to be started |
504 @param clType type of client to be started (defaults to None) |
504 @type str |
505 @type str (optional) |
505 @param forProject flag indicating a project related action |
506 @param forProject flag indicating a project related action (defaults to False) |
506 @type bool |
507 @type bool (optional) |
507 @param runInConsole flag indicating to start the debugger in a |
508 @param runInConsole flag indicating to start the debugger in a |
508 console window |
509 console window (defaults to False) |
509 @type bool |
510 @type bool (optional) |
510 @param venvName name of the virtual environment to be used |
511 @param venvName name of the virtual environment to be used (defaults to "") |
511 @type str |
512 @type str (optional) |
512 @param workingDir directory to start the debugger client in |
513 @param workingDir directory to start the debugger client in (defaults to "") |
513 @type str |
514 @type str (optional) |
514 @param configOverride dictionary containing the global config override |
515 @param configOverride dictionary containing the global config override data |
515 data |
516 (defaults to None) |
516 @type dict |
517 @type dict (optional) |
|
518 @param startRemote flag indicating to start the client via an eric-ide server |
|
519 (defaults to False) |
|
520 @type bool (optional) |
517 """ |
521 """ |
518 self.running = False |
522 self.running = False |
519 |
523 |
520 if ( |
524 if ( |
521 (not self.passive or not self.passiveClientExited) |
525 (not self.passive or not self.passiveClientExited) |
584 runInConsole, |
590 runInConsole, |
585 venvName, |
591 venvName, |
586 self.__originalPathString, |
592 self.__originalPathString, |
587 workingDir=workingDir, |
593 workingDir=workingDir, |
588 configOverride=configOverride, |
594 configOverride=configOverride, |
|
595 startRemote=startRemote, |
589 ) |
596 ) |
590 |
597 |
591 if self.clientProcess: |
598 if self.clientProcess: |
592 self.clientProcess.readyReadStandardError.connect( |
599 self.clientProcess.readyReadStandardError.connect( |
593 self.__clientProcessError |
600 self.__clientProcessError |
601 self.lastClientType = self.clientType |
608 self.lastClientType = self.clientType |
602 self.remoteBanner() |
609 self.remoteBanner() |
603 elif self.__autoClearShell: |
610 elif self.__autoClearShell: |
604 self.__autoClearShell = False |
611 self.__autoClearShell = False |
605 self.remoteBanner() |
612 self.remoteBanner() |
|
613 elif startRemote: |
|
614 self.remoteBanner() |
606 else: |
615 else: |
607 if clType and self.lastClientType: |
616 if clType and self.lastClientType: |
608 self.__setClientType(self.lastClientType) |
617 self.__setClientType(self.lastClientType) |
609 else: |
618 else: |
610 self.__createDebuggerInterface("None") |
619 self.__createDebuggerInterface("None") |