Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging Java-Files
Forum Update on Monday, May 27th 2025

Debugging Java-Files

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 963 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.
  • R Offline
    R Offline
    Robin Hood
    wrote on 19 Sept 2018, 12:33 last edited by
    #1

    Hello,
    In my project exits a .java file, which I would like to debug. Debugging on .cpp or .qml files is not a problem and works fine.
    Is there any additional attitude to follow?
    If it helps someone, I also have Android Studio installed on my computer. Maybe this can somehow connect with Qt Creator, but that's just an idea.

    I do not know how to continue and need your help.

    PS: I work with Qt Creator 4.6.2

    J 1 Reply Last reply 9 Nov 2018, 12:57
    0
    • R Robin Hood
      19 Sept 2018, 12:33

      Hello,
      In my project exits a .java file, which I would like to debug. Debugging on .cpp or .qml files is not a problem and works fine.
      Is there any additional attitude to follow?
      If it helps someone, I also have Android Studio installed on my computer. Maybe this can somehow connect with Qt Creator, but that's just an idea.

      I do not know how to continue and need your help.

      PS: I work with Qt Creator 4.6.2

      J Offline
      J Offline
      jordimarco
      wrote on 9 Nov 2018, 12:57 last edited by
      #2

      @Robin-Hood , I'm interested as well in this point.
      I would like to debug my Java files when I create a QAndroidJNIObjects and run the method callMethod().

      There is any way to allow that with QTCreator?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lqsa
        wrote on 9 Nov 2018, 18:40 last edited by
        #3

        I suppose that you are creating an Android app.

        First, you need to create a project for Android Studio. To do it, simply go to Projects \ Build Settings \ Build Android APK and press the "Create Templates" button on Android section:

        0_1541788639720_Captura.PNG

        Open the generated project with Android Studio. Put breakpoints on the JAVA code.

        On Android Studio exists an option for attach to a running app. Debug the app with Qt Creator and attach Android Studio to the app. After attach it, when the cpp code calls the JAVA code, Android Studio stops on the breakpoints.

        1 Reply Last reply
        1

        • Login

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