Page 2 of 2

Re: Debug Widget Qt

Posted: Mon Oct 30, 2017 2:13 pm
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

Re: Debug Widget Qt

Posted: Tue Jun 05, 2018 2:35 pm
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!

Re: Debug Widget Qt

Posted: Tue Jun 05, 2018 2:44 pm
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

Re: Debug Widget Qt

Posted: Tue Jun 05, 2018 2:47 pm
by sblancha
... and don't forget to copy the .debug/.pdb files to bin as well.

Re: Debug Widget Qt

Posted: Thu Jun 07, 2018 2:42 pm
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

Re: Debug Widget Qt

Posted: Thu Jun 07, 2018 3:02 pm
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.

Re: Debug Widget Qt

Posted: Fri Jun 08, 2018 8:08 am
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

Re: Debug Widget Qt

Posted: Fri Jun 08, 2018 2:36 pm
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 ?

Re: Debug Widget Qt

Posted: Fri Jun 08, 2018 5:19 pm
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.