-
Notifications
You must be signed in to change notification settings - Fork 25
[BUG] Can't debug a .net 8 for android app on a fireTV when running from vscode on mac. #2011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @TOberlie, We need to make sure we understand your use case before being able to help. Do you see the FireTV stick in the list of launch targets before attempting to launch and debug the app? Before doing F5, you are supposed to select your startup project and launch target, by clicking on the "{}" (language status item) at the bottom right of VS Code (while having a .cs file opened). As far as I understand, that's your real issue. If not, what happens that prevents you to run and debug your app? Are you getting a build error, a deploy error, a debug error? If you can be more specific on what is exactly failing for you, it would be helpful. Also, sharing the build output from the VS Code terminal might help as well. Thanks |
Hi @mauro ***@***.***>,
Yes, I can see the fire tv device in the debug targets. I have that selected as well as my startup project.
When attempting to run and debug the app, the build succeeds. I do not get any errors. The debug session starts and usually ends within a second.
Occasionally I can see the firetv attempt to launch the app before it goes back to the home page. Very rarely, it will launch the app and will get stuck on our main launcher activity, but it will only show the background of that activity. None of the other views are displayed.
However, it works fine if I manually install the apk via adb.
I am attaching the build output, debug console output and a screenshot of the language status item.
Thank you,
Tim
From: Mauro Agnoletti ***@***.***>
Date: Wednesday, May 21, 2025 at 12:41 PM
To: microsoft/vscode-dotnettools ***@***.***>
Cc: Oberlie, Timothy ***@***.***>, Mention ***@***.***>
Subject: Re: [microsoft/vscode-dotnettools] [BUG] Can't debug a .net 8 for android app on a fireTV when running from vscode on mac. (Issue #2011)
CAUTION - EXTERNAL EMAIL - Please use caution opening attachments and never share your password. Send suspicious email to ***@***.***
[Image removed by sender.]mauroa left a comment (microsoft/vscode-dotnettools#2011)<#2011 (comment)>
Hi @TOberlie<https://github.com/TOberlie>,
We need to make sure we understand your use case before being able to help.
Do you see the FireTV stick in the list of launch targets before attempting to launch and debug the app? Before doing F5, you are supposed to select your startup project and launch target, by clicking on the "{}" (language status item) at the bottom right of VS Code (while having a .cs file opened).
As far as I understand, that's your real issue. If not, what happens that prevents you to run and debug your app? Are you getting a build error, a deploy error, a debug error?
If you can be more specific on what is exactly failing for you, it would be helpful.
Also, sharing the build output from the VS Code terminal might help as well.
Thanks
—
Reply to this email directly, view it on GitHub<#2011 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYZBYZCH6KDPPXHVU4KY2OT27SUDFAVCNFSM6AAAAAB454KVOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJYGU4TEMRYGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@mauroa, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer. |
Hello @mauro ***@***.***>,
I tried to run the app from vscode this morning. The app launched and the debug session remained active. The background of our authentication activity was shown, and it took a few minutes for the rest of the views to be displayed. After clicking a skip button on the auth page, it took around 15 minutes for the player to load and start playback. I am attaching the build logs and debug logs to this email.
Thank you,
Tim
From: Oberlie, Timothy ***@***.***>
Date: Thursday, May 22, 2025 at 4:47 PM
To: microsoft/vscode-dotnettools ***@***.***>, microsoft/vscode-dotnettools ***@***.***>, Mauro Agnoletti ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [microsoft/vscode-dotnettools] [BUG] Can't debug a .net 8 for android app on a fireTV when running from vscode on mac. (Issue #2011)
Hi @mauro ***@***.***>,
Yes, I can see the fire tv device in the debug targets. I have that selected as well as my startup project.
When attempting to run and debug the app, the build succeeds. I do not get any errors. The debug session starts and usually ends within a second.
Occasionally I can see the firetv attempt to launch the app before it goes back to the home page. Very rarely, it will launch the app and will get stuck on our main launcher activity, but it will only show the background of that activity. None of the other views are displayed.
However, it works fine if I manually install the apk via adb.
I am attaching the build output, debug console output and a screenshot of the language status item.
Thank you,
Tim
From: Mauro Agnoletti ***@***.***>
Date: Wednesday, May 21, 2025 at 12:41 PM
To: microsoft/vscode-dotnettools ***@***.***>
Cc: Oberlie, Timothy ***@***.***>, Mention ***@***.***>
Subject: Re: [microsoft/vscode-dotnettools] [BUG] Can't debug a .net 8 for android app on a fireTV when running from vscode on mac. (Issue #2011)
CAUTION - EXTERNAL EMAIL - Please use caution opening attachments and never share your password. Send suspicious email to ***@***.***
[Image removed by sender.]mauroa left a comment (microsoft/vscode-dotnettools#2011)<#2011 (comment)>
Hi @TOberlie<https://github.com/TOberlie>,
We need to make sure we understand your use case before being able to help.
Do you see the FireTV stick in the list of launch targets before attempting to launch and debug the app? Before doing F5, you are supposed to select your startup project and launch target, by clicking on the "{}" (language status item) at the bottom right of VS Code (while having a .cs file opened).
As far as I understand, that's your real issue. If not, what happens that prevents you to run and debug your app? Are you getting a build error, a deploy error, a debug error?
If you can be more specific on what is exactly failing for you, it would be helpful.
Also, sharing the build output from the VS Code terminal might help as well.
Thanks
—
Reply to this email directly, view it on GitHub<#2011 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYZBYZCH6KDPPXHVU4KY2OT27SUDFAVCNFSM6AAAAAB454KVOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJYGU4TEMRYGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Describe the Issue
We have a fireTV app which is written in .net 8 for android. I recently had to switch from using Visual Studio 2022 on pc to vscode on a mac. I am unable to run and debug the app from vscode. This issue only happens with .net 8 and only on a firetv stick. If i try running a .net 8 for android app on a mobile android device, it works fine whether i use usb debugging or wireless debugging. If I try running a test app written in kotlin from android studio, I can run and debug it on the firetv device. The only way I am able to run the .net 8 app on the firetv device is by attempting to run it from vscode, deleting the app that gets installed from the firetv, then using adb to manually install the signed apk on the firetv. I’ve also tried using an android tv emulator, but it almost always freezes up and when it doesn’t freeze it fails to fetch data from our api so i am unable to reliably test the app. One thing I’ve noticed is a message in the build output instructing me to start sdb and connect my device, but from what I understand sdb is meant for tizen apps.
Steps To Reproduce
Create a .net for android application and attempt to run and debug it from vscode.
Expected Behavior
The app should launch and you should be able to set breakpoints
Environment Information
.net sdk:
8.0.405
workloads:
Installed Workload Id Manifest Version Installation Source
maui-ios 8.0.100/8.0.100 SDK 8.0.400
maui-android 8.0.100/8.0.100 SDK 8.0.400
ios 18.0.8319/8.0.100 SDK 8.0.400
maui 8.0.100/8.0.100 SDK 8.0.400
android 34.0.147/8.0.100 SDK 8.0.400
android studio:
Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2
Build #AI-242.23726.103.2422.13103373, built on February 21, 2025
Runtime version: 21.0.5±13047016-b750.29 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.4
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 3072M
Cores: 14
Metal Rendering is ON
Registry:
ide.experimental.ui=true
i18n.locale=
jdk:
openjdk version “17.0.14” 2025-01-21 LTS
OpenJDK Runtime Environment Microsoft-10800294 (build 17.0.14+7-LTS)
OpenJDK 64-Bit Server VM Microsoft-10800294 (build 17.0.14+7-LTS, mixed mode, sharing)
android sdks:
Android 15
Android 14
Android sdk build tools:
35.0.1
35.0.0
34.0.0
Android sdk command line tools:
17.0
11.0
The text was updated successfully, but these errors were encountered: