Skip to content

Commit

Permalink
Adjust auto setting for async jdwp mode & parepare 0.50.0 release (#1334
Browse files Browse the repository at this point in the history
)
  • Loading branch information
testforstephen authored Apr 24, 2023
1 parent 9f87152 commit 968aaf3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "vscode-java-debugger" extension will be documented i
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.50.0 - 2023-04-26
### Added
- Support specifying the exception types you want to break on. See [#1175](https://github.com/microsoft/vscode-java-debug/issues/1175) and [#295](https://github.com/microsoft/vscode-java-debug/issues/295).

## 0.49.1 - 2023-03-28
### Added
- Add context menus "Auto/Manual Expand Lazy Variables" to Variables view to auto show 'toString()' value. See [#1316](https://github.com/microsoft/vscode-java-debug/pull/1316).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht
- `java.debug.settings.stepping.skipConstructors`: Skip constructor methods when stepping.
- `java.debug.settings.jdwp.limitOfVariablesPerJdwpRequest`: The maximum number of variables or fields that can be requested in one JDWP request. The higher the value, the less frequently debuggee will be requested when expanding the variable view. Also a large number can cause JDWP request timeout. Defaults to 100.
- `java.debug.settings.jdwp.requestTimeout`: The timeout (ms) of JDWP request when the debugger communicates with the target JVM. Defaults to 3000.
- `java.debug.settings.jdwp.async`: Experimental: Controls whether the debugger is allowed to send JDWP commands asynchronously. Async mode can improve remote debugging response speed on high-latency networks. Defaults to `auto`, and automatically enable async mode in VS Code - Insiders.
- `java.debug.settings.jdwp.async`: Experimental: Controls whether the debugger is allowed to send JDWP commands asynchronously. Async mode can improve remote debugging response speed on high-latency networks. Defaults to `auto`, and automatically switch to async mode when the latency of a single jdwp request exceeds 15ms during attach debugging.
- `auto` (Default)
- `on`
- `off`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-java-debug",
"displayName": "Debugger for Java",
"description": "A lightweight Java debugger for Visual Studio Code",
"version": "0.49.1",
"version": "0.50.0",
"publisher": "vscjava",
"preview": true,
"aiKey": "67d4461e-ccba-418e-8082-1bd0acfe8516",
Expand Down Expand Up @@ -52,7 +52,7 @@
}
],
"javaExtensions": [
"./server/com.microsoft.java.debug.plugin-0.44.0.jar"
"./server/com.microsoft.java.debug.plugin-0.45.0.jar"
],
"commands": [
{
Expand Down
5 changes: 1 addition & 4 deletions src/configurationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,7 @@ async function updateDebugSettings(event?: vscode.ConfigurationChangeEvent) {
skipClasses: await substituteFilterVariables(debugSettingsRoot.settings.exceptionBreakpoint.skipClasses),
};

let asyncJDWP: string = debugSettingsRoot.settings.jdwp.async;
if (asyncJDWP === "auto" && vscode.env?.appName === "Visual Studio Code - Insiders") {
asyncJDWP = "on";
}
const asyncJDWP: string = debugSettingsRoot.settings.jdwp.async;
const settings = await commands.executeJavaLanguageServerCommand(commands.JAVA_UPDATE_DEBUG_SETTINGS, JSON.stringify(
{
...debugSettingsRoot.settings,
Expand Down

0 comments on commit 968aaf3

Please sign in to comment.