2064 host = os.getenv('ERICHOST', 'localhost') |
2064 host = os.getenv('ERICHOST', 'localhost') |
2065 if port is None: |
2065 if port is None: |
2066 port = os.getenv('ERICPORT', 42424) |
2066 port = os.getenv('ERICPORT', 42424) |
2067 |
2067 |
2068 remoteAddress = self.__resolveHost(host) |
2068 remoteAddress = self.__resolveHost(host) |
2069 name = os.path.basename(progargs[0]) |
2069 if progargs: |
|
2070 if not progargs[0].startswith("-"): |
|
2071 name = os.path.basename(progargs[0]) |
|
2072 else: |
|
2073 name = "debug_client_code" |
|
2074 else: |
|
2075 name = "debug_client_code" |
2070 self.connectDebugger(port, remoteAddress, redirect, name=name) |
2076 self.connectDebugger(port, remoteAddress, redirect, name=name) |
2071 |
2077 |
2072 self._fncache = {} |
2078 self._fncache = {} |
2073 self.dircache = [] |
2079 self.dircache = [] |
2074 if codeStr: |
2080 if codeStr: |