Page 1 of 2
Debug Widget Qt
Posted: Mon Mar 13, 2017 11:38 pm
by jeissonsierrac
hello !
I am developing a widget in QtCreator and I want to Debug my code, I´m trying to attach with the WinCCOAUI process like a CtrlExtention but it doesn´t work, ¿Is there anyway to do this debug?
Thanks!

Re: Debug Widget Qt
Posted: Fri Mar 24, 2017 8:23 am
by Gertjan van Schijndel
Debugging an EWO should work the same way as debugging a CtrlExtension.
Re: Debug Widget Qt
Posted: Tue Mar 28, 2017 10:46 am
by sblancha
Hello,
What do you mean by " same way as debugging a CtrlExtension."?
With Qt4 and WinCC OA 3.11 I was developing and debugging using VS2010, to debug the procedure was :
- Build using VS2010
- Copy DLL and EWO built to project/bin directory
- in VS2010, project properties > Configuration Properties > Debugging > Debugger to launch Command = WCCOAui.exe -proj myProj -p myUi
How to proceed similar with Linux Qt Creator?
Cheers,
Sebastien
Re: Debug Widget Qt
Posted: Tue Mar 28, 2017 1:04 pm
by mkoller
Start the UI Manager, start qtcreator, select "Debug > Start Debugging > Attach to running application ..." select the UI process > Attach To Process
Re: Debug Widget Qt
Posted: Thu Apr 06, 2017 10:10 am
by sblancha
Thanks Martin for the tip.
Seems to work fine. As I am not so familiar with Qt Creator, I am still not taking full advantage of this debug feature.
Cheers,
Sebastien
Re: Debug Widget Qt
Posted: Fri Oct 27, 2017 10:01 am
by martin.jelemensky
I was trying to Debug the the Qt code in the Qt Creator, however when I wanted to attach the UI process ("Debug > Start Debugging > Attach to running application ...") the field where the processes should be listed is completely empty and also after the update list it stays empty. I am doing something wrong ?
I am working on WinCC OA 3.14 x64 with Qt 5.5.0 under windows 7 x64.
Re: Debug Widget Qt
Posted: Fri Oct 27, 2017 3:20 pm
by mkoller
Check the "Kit" setting in this dialog and make sure the filter is empty
Re: Debug Widget Qt
Posted: Mon Oct 30, 2017 1:05 pm
by martin.jelemensky
The drop-down menu is grayed out and cannot be selected. If the "Manage" button is pressed I can see the Kits settings, and when i tried to play with the settings nothing changed and still cannot see any running processes in the menu. I also pressed "Update List" but that also did not change anything. I am sure i am doing something wrong but i cannot figure out what. My setting are displayed in the attached picture.
https://www.winccoa.com/fileadmin/image ... t_Kits.png
Re: Debug Widget Qt
Posted: Mon Oct 30, 2017 1:57 pm
by sblancha
For Qt creator on Linux, I did not have to change anything on Qt settings. The attach method should work fine if ui not immediately craches after startup, did you check your ui or gedi is running fine in windows task manager?
Sebastien
Re: Debug Widget Qt
Posted: Mon Oct 30, 2017 2:00 pm
by martin.jelemensky
the "ui" manager is running normally and does not crash at all