<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61357>61357</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb] Remote debugging does not inherit environment variables
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mrwuzz
</td>
</tr>
</table>
<pre>
When remotely debugging an application using LLDB, environment variables from the remote system are not inherited by the debugged application. This can cause issues, especially when debugging an application running inside a container that relies on environment variables for configuration.
Steps to reproduce:
On the remote side:
```
lldb-server platform --verbose --listen *:40007 --gdbserver-port 40008 --server
```
On the client side:
```
lldb
platform select remote-linux
platform connect connect://remote_host:port
file /application
settings set target.inherit-env true
process launch
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU8GOmzAQ_RpzGREZE5Jw4JBtlNNKldpKPVbGTMCVsZHHzjb79ZWB7mZXu6qEMAwz894w70ki3VvEhlUPrDplMobB-Wb0T_H5OWtdd2t-DmjB4-gCmht02Ma-17YHaUFOk9FKBu0sRErBx8fTAxNfAO1Ve2dHtAGu0mvZGiS4eDdCGHBtB3SjgCNIj2BdAG0H9DpgB-1tTlvAsLsH2sCPQRMoaUHJSAiaKCLNoDSh0tKYGzwl0p9y9dHaFNaWdIcgQTkbpLboIQwygEejkcDZz-ZwPpVcdB_9QorxE-PH5f494EQQHHicvOuiQlYe7xO-2jc_QXd3CTu-XvOrMV2bE_orepiMDBfnR8jzK_rWEUKeG00BLTBxZOVxyznfQ573XbvU5JPzAVL4APna50OcN7yU0Wnc__Fanl5YERpUYR0qN9rGP-8ylLM2paxn6i3OTJyXkl-DoxRLlJfCizYITJzvNrd8IAxB256AMECQvsewWbWTo71C8BFXbO8UEoGR0arh3ShZ15RdXdYyw6bY7Q-7oihEnQ2NwKpVZYX8wLeFqPFyQFmoUrViJzuuqkw3gouSl4Xgh0rweiOLsi7KQ70X6lLvy5JtOY5Sm40x13HjfJ_NKm12RVntMyNbNDRbTgiLT4uEmRDJgb5JNXkbe2JbnvZLr12CDmb26ryA6gTfFg29Kr1zSPdm-ljBWfSmGUKY6GULvQ5DbDfKjUycE-B65JN3v9O6xPmf087zGH8DAAD__yadZe8">