Skip to content

Java remote attach to debug not hitting breakpoints. #755

@jkryanchou

Description

@jkryanchou

[provide a description of the issue]

Environment
  • Operating System: MacOSX Mojave 10.14.6
  • JDK version: 1.8.0_121
  • Visual Studio Code version: 1.14.1
  • Java extension version: 0.8.1
  • Java Debugger extension version: 0.24.0
Steps To Reproduce
  1. [step 1] Set remote debug configuration

     {
            "type": "java",
            "name": "Debug (Attach) - Remote",
            "request": "attach",
            "hostName": "192.168.1.1",
            "timeout": 30000,
            "port": 8000,
            "projectName": "service"
        },
    
  2. [step 2] Run and Debug remote, and it shows that warning message, and not hitting the breakpoints set below.

    [Warn - 11:25:04 AM] 2020-2-3 11:25:04 [Warn] The debugger and the debuggee are running in different versions of JVMs. You could see wrong source mapping results.
    Debugger JVM version: 1.8.0_121
    Debuggee JVM version: 1.8.0_102

[attach a sample project reproducing the error]
attach logs

Current Result

Not hitting the breakpoints.

Expected Result

Hit the breakpoints and could view the variables.

Additional Informations

I used the IDEA remote attach through the commands, and it works without problem. I wonder if any differences between IDEA and VSCode-java-debug remote attach commands?

  • IDEA Remote debug options
    image

  • VSCode Java Debug remote attach configuration

image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions