vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Show logical structure apparently does not work

Open raduten opened this issue 2 years ago • 2 comments
trafficstars

Looks like the show logical structure setting is no longer working on remote debugging sessions. I am unable to see content of hashmaps and/or collections.

Probably caused by the same issue, conditional breakpoints don't work. I get a error card with error: 'Project MyApplication cannot be found.' I definitely don't have a project named 'MyApplication'.

Environment
  • Operating System: ubuntu 22.04.2
  • JDK version: 1.8
  • Visual Studio Code version: 1.78
  • Java extension version: 0.25.11
  • Java Debugger extension version: 0.50.0
Steps To Reproduce
  1. attached to running wildfly server
  2. create some breakpoint, try and inspect hashmaps and/or collections.

raduten avatar May 10 '23 12:05 raduten

Could you please share the steps to reproduce the problem? It would also be helpful if you could attach a sample project and the launch.json file you used.

testforstephen avatar May 12 '23 01:05 testforstephen

Thank you for getting back to me. I created a small test project to upload here, but I found out that in that one logical structure was working. Tested both with java 17 and then switched to java 1.8. Debugger is non-remote.

So, I think there is something wrong with my other project, which is big, can't upload here.

My main project is also using java 1.8, but debugger is remote attach. Here's the launch.json file I used for the main project: { "type": "java", "name": "Debug (Attach)", "projectName": "MyApplication", "request": "attach", "hostName": "localhost", "port": 8787 }

...and now I can see where does the MyApplication comes from for my second part of the issue.

The problem is that this is a j2ee application with multiple projects, so not sure which project name to use here in the launch config.

Below is a screenshot showing logical structure enabled, but not working. logical structure

Thank you!

raduten avatar May 12 '23 12:05 raduten