Skip to content

Debug console does not autocomplete when a .class file is open #535

Closed

Description

@dmarrazzo

Debugging a remote process, in the debug console, I cannot get any suggestion to inspect the code.

Environment
  • Operating System: Fedora 29
  • JDK version: openjdk version "1.8.0_201"
  • Visual Studio Code version: 1.31.1
  • Java extension version: 0.38
  • Java Debugger extension version: 0.16
Steps To Reproduce
  1. run a server in debug mode
  2. launch the debug session
Current Result

Debug console: CRTL - SPACE says no suggestions

Expected Result

Autocomplete based on the current classes where the debugger paused.

Activity

  1. testforstephen commented on Feb 18, 2019

    @testforstephen
    Contributor

    Yaohai Zheng (@yaohaizh) could you have a look?

  2. dmarrazzo commented on Feb 28, 2019

    @dmarrazzo
    Author

    I found that this problem is related to file .class.
    In other words, when it's able to retrieve the sources and open the file in read-only mode. it looks like such situation limits the debug console suggestion capability.

  3. changed the title [-]Debug console does not autocomplete in attach mode[/-] [+]Debug console does not autocomplete when a .class file is open[/+] on Mar 15, 2019
  4. dmarrazzo commented on Mar 15, 2019

    @dmarrazzo
    Author

    Hi Yaohai Zheng (@yaohaizh) ,

    this problem that I have noticed in attached mode is really simple to reproduce.
    Write a simple code that use an opensource library like apache commons.
    Step into the library code, it will open the *.class file (showing the source code).
    In this situation the debug console is not able to provide suggestions.

    If you need I can provide a reproducer project and a video.

    Thank you

  5. yaohaizh commented on Mar 21, 2019

    @yaohaizh
    Contributor
  6. testforstephen commented on Apr 3, 2019

    @testforstephen
    Contributor

    PR merged, will release in 0.18.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions