Skip to content

Debugger just broken with git bash as default shell on windows. #642

@pingu8007

Description

@pingu8007

Debugger just broken with git bash as default shell on windows.

Environment
  • Operating System: Windows, all version
  • JDK version: 1.8 (unrelated)
  • Visual Studio Code version: 1.37.1 (related)
  • Java extension version: 0.7.1
  • Java Debugger extension version: 0.21.0
  • Default shell: Git Bash,
Steps To Reproduce
  1. Configure git bash as default vscode shell
  2. Start debuging
Current Result

With high chance the java.exe may not invoked correctly (arguments syntax error). Anything follow on will be treated as command and leading to more error.

Expected Result

Start debugging as normal.

Workaround

One of the following:

  • Set java.debug.settings.console property to internalConsole
  • Set CMD or PS as default shell
Additional Informations

This problem seems related to #611, maybe some additional check on default shell and only apply when using CMD/PS could solve it?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions