Skip to content

Line number is not corrected match for system classes on the Ubuntu #11

@yaohaizh

Description

@yaohaizh

Project: https://github.com/fbricon/vscode-java-demo
System: Ubuntu

  1. Git clone the project
  2. Open with VSCode and wait for the project initialized with language server
  3. Config launch.json
  4. Start debugging

Issue: Debug into the system classes such as Arrays/AbstractCollection, it will stop at the last line

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "type": "java",
            "name": "Debug (Launch)",
            "request": "launch",
            "mainClass": "com.redhat.vscode.demo.DevoxxApplication",
            "args": "",
            "sourcePaths": [
                "${workspaceRoot}"
            ]
        },
        {
            "type": "java",
            "name": "Debug (Attach)",
            "request": "attach",
            "hostName": "localhost",
            "port": 0,
            "timeout": 30000,
            "sourcePaths": [
                "${workspaceRoot}"
            ]
        }
    ]
}

error

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions