Visual Studio Code projectName
For Maven projects(at least) you can find the project names at the bottom of the vscode sidebar under MAVEN PROJECTS.
You can also look for .project files inside your projects.The projectName is there in the name attribute.
*I'm not expert on this at all, but I was struggling with this too, so I hope it can help someone else!
If you are using the extension Debugger for Java (https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug), then the projectName
is the name of the directory that your project is in.
For instance, if your project looks like the following.
my-project/ src/ main/ java/ myproject/ Application.java .project pom.xml
Then projectName = "my-project"
The VSCode contains JAVA PROJECTS on the sidebar.I am using SSH plugin to connect to a machine where the project actually resides (VS Code runs locally) so the name of the java project is my name and some hash to it
After adding the hash "_c4503cca" to the projectName in launch.json, the watches in debug mode work fine.