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