godarch / darch

A tool for building and booting stateless and immutable images, bare metal.
https://godarch.com/
MIT License
832 stars 32 forks source link

Question: VSCode debugging as root #27

Closed shizonic closed 6 years ago

shizonic commented 6 years ago

Hi again

I am currently working on some personal improvements for darch and forked the repo.

After setting up my vscode for development (btw. vscode is awesome!) I tried to debug the gode using delve.

The problem is that I can't run darch as root with the vscode debugger. So I would like to ask you how you handle this?

Thanks for all your help.

pauldotknopf commented 6 years ago

I run VSCode as root. There is a switch you have to pass to code that sets a different config directory.

shizonic commented 6 years ago

Thanks for your reply. Yes I know that - it's --user-data-dir. But I was looking for a better approach. Isn't there one?

pauldotknopf commented 6 years ago

I'm afraid not, AFAIK.

shizonic commented 6 years ago

Okay, thanks anyway. 👍