Changes
Page history
Update debugging
authored
Oct 31, 2023
by
umaumax
Hide whitespace changes
Inline
Side-by-side
debugging.md
View page @
d3090822
[[
_TOC_
]]
## ワークアラウンド
### 🌟🌟🌟 root権限無しで、`/etc/hosts`ファイルの上書き相当の処理を実行する
[
dns - associate IP with hostname without editing /etc/hosts - Unix & Linux Stack Exchange
](
https://unix.stackexchange.com/questions/714953/associate-ip-with-hostname-without-editing-etc-hosts
)
```
bash
TMP_HOSTS_FILEPATH
=
./tmp_etc_hosts
# 相対パスでもOK
unshare
--mount
--map-root-user
bash
-c
"mount --bind --make-private "
$TMP_HOSTS_FILEPATH
" /etc/hosts; ping hoge.example.com"
```
## デバッグについて
### 種類
*
ライブデバッグ: プロセスにアタッチしてリアルタイムに行う
...
...
...
...