×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Help with driver debugging

  • Posts: 7
  • Thank you received: 1
Hi. I’m after some help with driver debugging my dome driver. I’m new to the world of developing in linux / QTCreator however I have written ASCOM (c# .net) drivers for my dome & focuser and I’d really love to do away with the windows environment and move to linux for my astrophotography work.
I’m in the process of porting my dome driver to indi and am now at the debugging stage. I’ve followed the guidelines in the indi dev manual indilib.org/develop/developer-manual/163...ent-environment.html for both the celestrongps example and for my dome driver but the program doesn’t stop when the breakpoint is hit.
Does the program need to be compiled in debugging mode? If so, where do I set that?
Note that one thing could not figure out was where to set the CMAKE_INSTALL_PREFIX to /usr in the Projects section of QTCreator.
Any help / pointers would be greatly appreciated.
7 years 10 months ago #12606

Please Log in or Create an account to join the conversation.

Hello and welcome to INDI!

Did you set the gdb settings to "set follow-fork-mode child" in QtCreator as illustrated in the video? is the dome driver the first driver passed to INDI server? And yes, it needs to be in debug mode. If you see the 2nd video in that page, I selected Debug when I first opened the CMakelists.txt. Alternatively, you can set debug directly in the CMake options. This is also where you set CMAKE_INSTALL_PREFIX. See image blow



I also recommend you get QtCreator directly from Qt website as the one in the distro might be a bit old and they improved CMake support greatly in recent releases.
7 years 10 months ago #12623
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 1
Thanks so much for the response.
I updated to the latest version of QTCreator and after a bit of playing around, everything fell into place :-)
Debugging is now working correctly. Now the fun starts!!!
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 7 years 9 months ago by Matt Todman. Reason: Solved
7 years 10 months ago #12634

Please Log in or Create an account to join the conversation.

Time to create page: 0.758 seconds