Debug Widget Qt

Find and share HowTos to various installations / configurations!
Search

Post Reply
19 posts • Page 1 of 2
jeissonsierrac
Posts: 62
Joined: Wed Jun 03, 2015 9:37 pm

Debug Widget Qt

Post 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! :)

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: Debug Widget Qt

Post by Gertjan van Schijndel »

Debugging an EWO should work the same way as debugging a CtrlExtension.

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Debug Widget Qt

Post 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

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: Debug Widget Qt

Post by mkoller »

Start the UI Manager, start qtcreator, select "Debug > Start Debugging > Attach to running application ..." select the UI process > Attach To Process

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Debug Widget Qt

Post 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

martin.jelemensky
Posts: 16
Joined: Wed Aug 09, 2017 1:20 pm

Re: Debug Widget Qt

Post 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.

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: Debug Widget Qt

Post by mkoller »

Check the "Kit" setting in this dialog and make sure the filter is empty

martin.jelemensky
Posts: 16
Joined: Wed Aug 09, 2017 1:20 pm

Re: Debug Widget Qt

Post 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
Attachments
Qt_Kits.png

sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Debug Widget Qt

Post 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

martin.jelemensky
Posts: 16
Joined: Wed Aug 09, 2017 1:20 pm

Re: Debug Widget Qt

Post by martin.jelemensky »

the "ui" manager is running normally and does not crash at all

Post Reply
19 posts • Page 1 of 2