Skip to content

[Android] visual code Attach Debugger when Unity View attached #1012

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

Open
vanlecs09 opened this issue Mar 26, 2025 · 1 comment
Open

[Android] visual code Attach Debugger when Unity View attached #1012

vanlecs09 opened this issue Mar 26, 2025 · 1 comment
Labels
Documentation Documentation issue (readme or examples)

Comments

@vanlecs09
Copy link

I try to attach debugger from unity3d using visual code to debug on android emulator. But I got nothing happened. Any suggestion? Thanks

@timbotimbo
Copy link
Collaborator

timbotimbo commented Mar 31, 2025

Just did a quick test and here is how I managed to use the debugger to trigger a breakpoint.

Unity

  • Export as Android Debug in Unity

Image

Visual Studio

  • Click Debug -> Attach Unity Debugger in Visual studio
  • Select your device (after Unity has launched within Flutter)

Image

Image

Visual Studio code

  • Make sure the Unity plugin by Microsoft is installed.
  • Open the command palette (View -> Command Pallette Or Ctrl + Shift + p)
  • Search for unity and click Attach Unity debugger
  • It will now search for active Unity instances, if it finds one, click it to debug.

Image

Image

Image

@timbotimbo timbotimbo added the Documentation Documentation issue (readme or examples) label Mar 31, 2025
@timbotimbo timbotimbo changed the title visual code Attach Debugger when Unity View attached [Android] visual code Attach Debugger when Unity View attached Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation issue (readme or examples)
Projects
None yet
Development

No branches or pull requests

2 participants