Skip to content
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

Debugger does not work on initial deployment to iOS device #21186

Closed
thisisthekap opened this issue Sep 5, 2024 · 3 comments
Closed

Debugger does not work on initial deployment to iOS device #21186

thisisthekap opened this issue Sep 5, 2024 · 3 comments
Labels
need-attention An issue requires our attention/response
Milestone

Comments

@thisisthekap
Copy link

Apple platform

iOS

Framework version

net8.0-*

Affected platform version

8.0.401

Description

The debugger does not work in Visual Studio Code or JetBrains Rider on initial deployment to an iOS device (tested both).

Steps to Reproduce

  1. git clone https://github.com/thisisthekap/mauiiosloggingissue
  2. Place breakpoint on MainPage.xaml.cs:16
  3. Deploy to device
  4. Press button --> no breakpoint hit
  5. Stop execution
  6. Deploy to device (without removing the app from the device)
  7. Press button --> breakpoint is hit

Did you find any workaround?

No response

Relevant logs

No response

@rolfbjarne
Copy link
Member

Do you get a dialog about permitting access to the local network upon starting the first time?

If so, this is kind of expected, because debugging happens over the local network.

@rolfbjarne rolfbjarne added this to the Future milestone Sep 6, 2024
@rolfbjarne rolfbjarne added the need-info Waiting for more information before the bug can be investigated label Sep 6, 2024
@thisisthekap
Copy link
Author

The dialog appears, and I always allow it immediately. But the debugger is not connecting anyways.

@microsoft-github-policy-service microsoft-github-policy-service bot added need-attention An issue requires our attention/response and removed need-info Waiting for more information before the bug can be investigated labels Sep 6, 2024
@rolfbjarne
Copy link
Member

The dialog appears, and I always allow it immediately. But the debugger is not connecting anyways.

Yes, once the app has launched it's too late to establish the connection with the debugger, which is why it only works after re-launching the app.

The workaround is to connect over the USB cable, but that's not implemented for VSCode (microsoft/vscode-dotnettools#1081), so closing this as a duplicate of the VSCode issue.

@rolfbjarne rolfbjarne closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-attention An issue requires our attention/response
Projects
None yet
Development

No branches or pull requests

3 participants
@rolfbjarne @thisisthekap and others