Skip to content

Debugger stopped working after upgrading to 0.3.1? #170

Closed

Description

Here is my configuration:

{ // 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.xxxx.xxxxxx", "vmArgs": "-Xms2000m -Xmx3000m -Dspring.profiles.active=dev -Dspring.config.location=file:/Users/xxxxxx/app/src/main/resources/config/local/application.yml -agentpath:/Users/xxxxx/jrebel/lib/libjrebel64.dylib", "cwd": "${workspaceFolder}" } ] }

Not sure what happened, but it seems after upgrading to 0.3.1, the debugger stopped working. Once started, it shows "Compiling workspace" and then the following error.

image

I don't remember seeing "Compiling workspace" before, and I don't need it actually. Downgrading to 0.2.0 works.

Environment
  • Operating System: Mac
  • JDK version: 1.8.0_144
  • Visual Studio Code version: 1.18.1
  • Java extension version: 0.14.0
  • Java Debugger extension version: 0.3.1

Activity

  1. changed the title [-]Debugger stopped working after upgrading to VS Code 1.18.1?[/-] [+]Debugger stopped working after upgrading to 0.3.1?[/+] on Nov 18, 2017
  2. gorkem commented on Nov 20, 2017

    @gorkem
    Collaborator

    I see the exact same behavior in my case it is trying to attach to an already running application.

  3. ansyral commented on Nov 20, 2017

    @ansyral
    Contributor

    Compiling the workspace should be removed for attaching case.

    One known cause is that language server would link current src files into default project, which I'll investigate later. For this case, cleaning your local vscode storage folder(%AppData%\Code\User\workspaceStorage) would unblock it.

  4. shawnwithlegion commented on Nov 20, 2017

    @shawnwithlegion
    Author

    Xuan Zhou (@ansyral) Cleaning /workspaceStorage doesn't work for me.

  5. snjeza commented on Nov 20, 2017

    @snjeza

    Shawn Lan (@shawnwithlegion) try to remove the Java Debug extension, reload VS Code and reinstall it.

  6. YousefSaber commented on Nov 21, 2017

    @YousefSaber

    Snjeza (@snjeza)

    I've tried this didn't work doesn't anyone knows how to fix this issue

  7. snjeza commented on Nov 21, 2017

    @snjeza

    Shawn Lan (@shawnwithlegion) try to remove the LS for Java by Red Hat extension and reinstall it.

  8. shawnwithlegion commented on Nov 21, 2017

    @shawnwithlegion
    Author

    Snjeza (@snjeza) I did but it didn't fix the issue. I had to downgrade to 0.2.0 for now.

  9. wokhan commented on Nov 22, 2017

    @wokhan

    Workaround: I had to manually modify the configurationProvider.js file to remove the compilation (in extensions\vscjava.vscode-java-debug-0.3.1\out\src).
    Line 92: comment the whole try / catch so that compilation is not required anymore.
    This should be an option (force recompilation everytime or not), as this is not exactly useful (code is recompiled automatically anyway on save...).

    Nice extension anyway :-)

  10. hnefatl commented on Nov 22, 2017

    @hnefatl

    Jérôme Saliba (@wokhan) Can confirm this works for me, with version 0.3.1.

  11. shawnwithlegion commented on Nov 22, 2017

    @shawnwithlegion
    Author

    Agreed with Jérôme Saliba (@wokhan). Forcing compilation every time should be an option.

  12. added this to the 0.4.0 milestone on Nov 27, 2017
  13. akaroml commented on Nov 27, 2017

    @akaroml
    Member
  14. shawnwithlegion commented on Nov 30, 2017

    @shawnwithlegion
    Author

    issue not fixed with 0.4.0. Not it's showing something like "the response is not either an error or...."

  15. andxu commented on Dec 1, 2017

    @andxu
    Contributor

    Shawn Lan (@shawnwithlegion) are you using the latest version 0.15.0 of https://marketplace.visualstudio.com/items?itemName=redhat.java with the change log which contains full and incremental compilation.

  16. shawnwithlegion commented on Dec 4, 2017

    @shawnwithlegion
    Author

    Andy Xu(devdiv) (@andxu) works with 0.15.0. Thanks!

  17. yaohaizh commented on Dec 5, 2017

    @yaohaizh
    Contributor

    Close this as it has been fixed in the latest vscode-java/vscode-java-debugger.

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions