Skip to content

Commit 9db98f0

Browse files
authored
fix(guide): add AndroidSdbTargetPort in android debugging section (#726)
1 parent 7e0890b commit 9db98f0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

docs/guides/platforms/android/configure-vscode-debug-linux.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ where `port` value can be arbitrary (make sure it's not used already by other ap
5555
"-p:TargetFramework=net6.0-android",
5656
"-p:Configuration=Debug",
5757
"-p:AndroidAttachDebugger=true",
58-
"-p:AndroidSdbHostPort=10000"
58+
"-p:AndroidSdbHostPort=10000",
59+
"-p:AndroidSdbTargetPort=10000"
5960
],
6061
"problemMatcher": "$msCompile"
6162
}
@@ -66,7 +67,7 @@ where `port` value can be arbitrary (make sure it's not used already by other ap
6667
where `<ProjectName>` is your Android-specific Avalonia project name.
6768

6869
:::info
69-
Make sure that the value of `port` variable in `launch.json` matches the one of `AndroidSdbHostPort` in `tasks.json`, otherwise the debugger won't be able to connect.
70+
Make sure that the value of `port` variable in `launch.json` matches the one of `AndroidSdbHostPort` and `AndroidSdbTargetPort` in `tasks.json`, otherwise the debugger won't be able to connect.
7071
:::
7172

7273
After the setup, you can run the `Debug - Android` task via the Debug panel. Dotnet runtime will build and deploy the app, and Mono debugger will connect to the open port on the device, with all standard debugging functionality available.

i18n/ru/docusaurus-plugin-content-docs/current/guides/platforms/android/configure-vscode-debug-linux.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ where `port` value can be arbitrary (make sure it's not used already by other ap
5555
"-p:TargetFramework=net6.0-android",
5656
"-p:Configuration=Debug",
5757
"-p:AndroidAttachDebugger=true",
58-
"-p:AndroidSdbHostPort=10000"
58+
"-p:AndroidSdbHostPort=10000",
59+
"-p:AndroidSdbTargetPort=10000"
5960
],
6061
"problemMatcher": "$msCompile"
6162
}
@@ -66,7 +67,7 @@ where `port` value can be arbitrary (make sure it's not used already by other ap
6667
where `<ProjectName>` is your Android-specific Avalonia project name.
6768

6869
:::info
69-
Make sure that the value of `port` variable in `launch.json` matches the one of `AndroidSdbHostPort` in `tasks.json`, otherwise the debugger won't be able to connect.
70+
Make sure that the value of `port` variable in `launch.json` matches the one of `AndroidSdbHostPort` and `AndroidSdbTargetPort` in `tasks.json`, otherwise the debugger won't be able to connect.
7071
:::
7172

7273
After the setup, you can run the `Debug - Android` task via the Debug panel. Dotnet runtime will build and deploy the app, and Mono debugger will connect to the open port on the device, with all standard debugging functionality available.

i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/platforms/android/configure-vscode-debug-linux.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ title: 在Visual Studio Code中配置调试(Linux)
5555
"-p:TargetFramework=net6.0-android",
5656
"-p:Configuration=Debug",
5757
"-p:AndroidAttachDebugger=true",
58-
"-p:AndroidSdbHostPort=10000"
58+
"-p:AndroidSdbHostPort=10000",
59+
"-p:AndroidSdbTargetPort=10000"
5960
],
6061
"problemMatcher": "$msCompile"
6162
}
@@ -66,7 +67,7 @@ title: 在Visual Studio Code中配置调试(Linux)
6667
其中,`<ProjectName>`是您的Android特定Avalonia项目名称。
6768

6869
:::info
69-
请确保`launch.json``port`变量的值与`tasks.json``AndroidSdbHostPort`的值相匹配,否则调试器将无法连接。
70+
请确保`launch.json``port`变量的值与`tasks.json``AndroidSdbHostPort``AndroidSdbTargetPort`的值相匹配,否则调试器将无法连接。
7071
:::
7172

7273
设置完成后,您可以通过调试面板运行`Debug - Android`任务。 Dotnet运行时将构建和部署应用程序,而Mono调试器将连接到设备上的开放端口,并提供所有标准的调试功能。

0 commit comments

Comments
 (0)