Debug Widget Qt

Find and share HowTos to various installations / configurations!
Search

Post Reply
19 posts • Page 2 of 2
sblancha
Posts: 64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Debug Widget Qt

Post by sblancha »

I am afraid I could not help you more, on windows OS I am using Visual Studio that for me is much more convenient than Qt Creator for debugging purpose.
Sebastien

Kshitij Mayekar
Posts: 8
Joined: Mon Jan 16, 2017 6:46 am

Re: Debug Widget Qt

Post by Kshitij Mayekar »

Hey! were you able to use the debugger for EWO.
If yes, how ?
How did you ensure your dll(ewo) is called when debugging.

Thanks!

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

Re: Debug Widget Qt

Post by sblancha »

The "attach to process" method described by Martin Koller works fine.
You have to copy your compiled libraries/EWOs to your WCCOA project directory\\bin
Cheers,
Sebastien

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

Re: Debug Widget Qt

Post by sblancha »

... and don't forget to copy the .debug/.pdb files to bin as well.

Kshitij Mayekar
Posts: 8
Joined: Mon Jan 16, 2017 6:46 am

Re: Debug Widget Qt

Post by Kshitij Mayekar »

Hey,

I am not able to to debug my EWO.

I copied the debug builds amd .pdb file to C:\\Siemens\\Automation\\WinCC_OA\\3.15\\bin\\widgets\\windows-64\\ folder and also too my project/bin folder.

Problem : I get unable to load EWO when I draw this debug EWO to a panel.

I intend to start this panel through UI manager and attach my debugger to it.

Please advice.

Thanks,
Kshitij

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

Re: Debug Widget Qt

Post by sblancha »

> copy to C:\\Siemens\\Automation\\WinCC_OA\\3.15\\bin\\widgets\\windows-64\\
This is useless
> copy my project/bin folder
This is Ok

Before copy you have to close all the ui and ctrl manager using bin libs, otherwise the ui you launch for debug will not reload the libs

in addition for windows OS you have to check yourProj\\bin is in the environment variable PATH.

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

Re: Debug Widget Qt

Post by Gertjan van Schijndel »

Kshitij Mayekar wrote:
Problem : I get unable to load EWO when I draw this debug EWO to a panel.
This sound like a missing library issue as mentioned in the topics:
How to build an EWO?
Library Include Problem on EWO

Kshitij Mayekar
Posts: 8
Joined: Mon Jan 16, 2017 6:46 am

Re: Debug Widget Qt

Post by Kshitij Mayekar »

I am able to load release verion of my EWO. The problem is when I try to load debug build. Do I need separate debug libs of dependencies as well ?

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

Re: Debug Widget Qt

Post by Gertjan van Schijndel »

If your debug build compiles against debug version of libraries, then you also need the debug libraries.
But you could instead activate the debug generation of your release version and debug that version.

Post Reply
19 posts • Page 2 of 2