Skip to content

How do I properly set the property ProjectName for a JNI program? #1513

@Lyxien

Description

@Lyxien

My project is using C++ to call JAVA code via JNI and there is no static main method in the code. When using the debugging watch function, the program reminds me that I need to specify the projectName in launch.json, but I don't know where this ProjectName comes from?

Environment
  • Operating System: Ubuntu
  • JDK version: openjdk version "17.0.12"

this is my launch.json:

            "type": "java",
            "name": "mydebug",
            "request": "attach",
            "hostName": "localhost",
            "port": 8002

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions