Index: en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml =================================================================== --- en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml +++ en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml @@ -1655,6 +1655,38 @@ expr PauseMode = 0 and wait for the sleep() call to return. + + + Remote Debugging Using LLDB + + Starting with LLDB 12.0.0, remote debugging is supported + on &os;. This means that lldb-server + can be started to debug a program on one host, while + the interactive lldb client connects + to it from another one. + + To launch a new process to be debugged remotely, run + lldb-server on the remote server + by typing + + &prompt.user; lldb-server g host:port -- progname + + The process will be stopped immediately after launching, + and lldb-server will wait for the client + to connect. + + Start lldb locally and type + the following command to connect to the remote + server: + + (lldb) gdb-remote host:port + + lldb-server can also attach to + a running process. To do that, type the following + on the remote server: + + &prompt.user; lldb-server g host:port --attach pid-or-name +