QtCreator3.5.1 Qt5.5.1でWidgetアプリケーションをDebugしています。
下記の資料で、qtCreatorをroot permissionで実行する手順が記されています。
その内容は、下記の編集手順の1,2,3,4,5以下、にcopyした通りです。
この手順でDenugできるコードは
通常のC++(int main(int argc, char* argv[])であり、GUI形式の
プログラムはDebug出来ないのでは無いかと思っています。
Q1) この件についてコメント頂けますと大変助かります。
資料のタイトルとURL=============
Debug Qt application on ubuntu with root permission using qt creator
URL:
https://askubuntu.com/questions/237617/debug-qt-application-on-ubun...
編集手順(copyしたもの)=============
- Go to Tools-> Options-> Environment
- In the Tab General under System Group there is a Terminal Option.
- The default value is set to/usr/bin/xterm -e. Replace it with /usr/bin/xterm -e sudo or /usr/bin/gnome-terminal -x sudo.
- Press Apply and OK Buttons.
- Under Mode Selector click on Projects, select Run Option. Under Run Group Box select Run in Terminal.
Remember : sudo option must be there
Edit /etc/sudoers using sudo visudo
Next time when you run the program it will be invoked in a new xterm or gnome-terminal with Super User Permission and will ask for the root password.
以上、宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。