<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, <div class=""><br class=""></div><div class="">I’ve been trying to run<b class=""> lldb-server</b> from within a linux container lately. </div><div class=""><br class=""></div><div class="">When I try to attach from outside the container using <b class="">lldb </b>command, most steps are successful but I can’t launch the process:</div><div class=""><br class=""></div><div class="">platform select remote-linux 👍</div><div class="">platform connect <a href="connect://IP:PORT" class="">connect://IP:PORT</a> 👍</div><div class="">target create main 👍</div><div class="">process launch ❌</div><div class=""><br class=""></div><div class="">My guess is that the container only exposes the control port, the one I’m listening to with <b class="">lldb-server p --listen *:PORT.</b></div><div class="">And it seems that ports are dynamically allocated to then handle process debugging. </div><div class=""><br class=""></div><div class="">I don’t want my container to expose too many ports, as I usually have in fact only one debuggable process running inside.</div><div class="">(I tried, I can launch my process if the container exposes all ports)</div><div class=""><br class=""></div><div class="">Is there a way to set a range for these dynamically allocated ports using <b class="">lldb-server?</b></div><div class=""><br class=""></div><div class="">I can’t find it in the docs, and help command can’t help me either:</div><div class=""><div class=""><b class="">Usage:</b></div><div class=""><b class="">  lldb-server p [--log-file log-file-name] [--log-channels log-channel-list] [--port-file port-file-path] --server --listen port</b></div></div><div class=""><b class=""><br class=""></b></div><div class="">Also, is there an option to use unix sockets instead of ports?</div><div class=""><br class=""></div><div class="">Thanks for your help!</div><div class=""><br class=""></div><div class="">- Adrien Duermael</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>