DioxusLabs / DioxusLabs/dioxus
Support dioxus-cli debug when ptrace_scope is 1
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
When using dioxus-cli debug (via `dx serve --desktop` and hitting "d") I get an error:
(That points to https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html )
It would be nice if instead of suggesting I reduce the security of my system, that it just worked.
## Implement Suggestion
My understanding of ptrace_scope 1 is that the parent process needs to configure the child process to enable debugging. Presumably dioxus-cli could do this just like how vs-code debug launch targets do it.
I can debug rust applications with vs-code just fine on my system using debug launch targets with its current ptrace_scope 1 setting (seems to be the default on Kubuntu), but I don't know how to apply this to dioxus-cli (I don't know how to setup a debug launch target which works with dioxus-cli, nor how to use the built in debug feature without removing the ptrace_scope security level system wide.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.