「リモートデバッグ設定の苦難」の編集履歴(バックアップ)一覧に戻る
[root@remotehost]telnet ゲートウェイIP 5678 [root@remotehost]telnet localhost 5678
@note: in this context, the server is where your python process is running#サーバはパイソンが走っている方、クライアントはエクリプスの方 and the client is where eclipse is running. E.g.: If the server (your python process) has the structure /user/projects/my_project/src/package/module1.py #例えばlinuxの方でこうなってるんなら and the client has: c:\my_project\src\package\module1.py #同じモジュールを同じ階層で置かなくてはならない? the PATHS_FROM_ECLIPSE_TO_PYTHON would have to be: PATHS_FROM_ECLIPSE_TO_PYTHON = [(r'c:\my_project\src', r'/user/projects/my_project/src')]
def settrace(host=None, stdoutToServer=False, stderrToServer=False, port=5678, suspend=True, trace_only_current_thread=True): '''Sets the tracing function with the pydev debug function and initializes needed facilities. @param host: the user may specify another host, if the debug server is not in the same machine (default is the local host)#ホストを省略するとlocalhostに(つまり通常のデバッグ) @param stdoutToServer: when this is true, the stdout is passed to the debug server @param stderrToServer: when this is true, the stderr is passed to the debug server so that they are printed in its console and not in this process console. @param port: specifies which port to use for communicating with the server (note that the server must be started in the same port). @note: currently it's hard-coded at 5678 in the client#クライアントのポートはハードコーディングでサーバ側と同じ5678 @param suspend: whether a breakpoint should be emulated as soon as this function is called. #settraceはブレークポイントと同義 @param trace_only_current_thread: determines if only the current thread will be traced or all future threads will also have the tracing enabled.#スレッドに関すること? '''