Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to display output from Qt Android service process in QtCreator?

How to display output from Qt Android service process in QtCreator?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 755 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    morte
    wrote on 15 Aug 2020, 20:33 last edited by morte
    #1

    How to display output from Qt Android service in QtCreator (qDebug() and Log.i() messages) in QtCreator?
    'Application output' shows output from main process but service runs in different process.

    J 1 Reply Last reply 16 Aug 2020, 06:47
    0
    • M morte
      15 Aug 2020, 20:33

      How to display output from Qt Android service in QtCreator (qDebug() and Log.i() messages) in QtCreator?
      'Application output' shows output from main process but service runs in different process.

      J Offline
      J Offline
      JonB
      wrote on 16 Aug 2020, 06:47 last edited by JonB
      #2

      @morte
      QtService seems to be a wrapper for Linux demons or Windows services. By definition you won't be able to access any output it produces, since it's in a quite separate process and any output it produces will go elsewhere (probably nowhere). It would be more usual for any output a service wants to produce to go to a file/the system's "event log", but that is done within the service.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        morte
        wrote on 16 Aug 2020, 18:11 last edited by
        #3

        @JonB I have not specified, QtService for Android (part of QtAndroidExtras), its different process, but maybe its possible somehow to attach it's output

        1 Reply Last reply
        0
        • M Offline
          M Offline
          morte
          wrote on 19 Aug 2020, 01:26 last edited by
          #4

          It's not implemented currently on Qt Creator 4.12/4.13.
          Created bugreport with suggestion to add that feature https://bugreports.qt.io/browse/QTCREATORBUG-24496

          J 1 Reply Last reply 19 Aug 2020, 11:14
          0
          • M morte
            19 Aug 2020, 01:26

            It's not implemented currently on Qt Creator 4.12/4.13.
            Created bugreport with suggestion to add that feature https://bugreports.qt.io/browse/QTCREATORBUG-24496

            J Offline
            J Offline
            JonB
            wrote on 19 Aug 2020, 11:14 last edited by
            #5

            @morte
            Good luck for them choosing or being able to do anything about it. Since, as you say, the service is running in a separate process I don't think you'll get the debug output from that process while you are debugging your main process....

            M 1 Reply Last reply 25 Aug 2020, 16:58
            0
            • J JonB
              19 Aug 2020, 11:14

              @morte
              Good luck for them choosing or being able to do anything about it. Since, as you say, the service is running in a separate process I don't think you'll get the debug output from that process while you are debugging your main process....

              M Offline
              M Offline
              morte
              wrote on 25 Aug 2020, 16:58 last edited by morte
              #6

              @JonB QtCreator probably takes all output from logcat, what needed is to modify logcat filters that QtCreator output windows uses or add additional output window with own filters for separate process

              1 Reply Last reply
              0

              1/6

              15 Aug 2020, 20:33

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved