robertknight / Qt-Inspector

Utility to browse the Qt object tree of a running Qt application and edit object properties on the fly.
GNU Lesser General Public License v3.0
401 stars 70 forks source link

Does not work on ubuntu #24

Open realsetvin opened 1 year ago

realsetvin commented 1 year ago

Another user reported their similar issue, except I have much less idea of what is going on. I made sure to find the process id and run it with that. I am attempting to run a forked bitcoin qt version 4.8 I probably have version 5 but Im not smart enough to figure out how all this works.

image

I would love to get this product working, it would become a must have for me. I use ubuntu sometimes and debian 12 most. Thanks for your time and consideration to help get this resolved.

robertknight commented 1 year ago

qtinspector is not supposed to be run with sudo, but rather as the same user as the target process. On modern systems you will get an error when attempting to attach to a PID, as opposed to having qtinspector launch the program, unless ptrace_scope is turned off. See this article.

qtinspector writes log files to /tmp/inspector-log-{pid}, can you check if that file exists and if so post the contents of it.