-
Notifications
You must be signed in to change notification settings - Fork 268
Export WaitForDebugger for extension command debugging
#6433
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
base: main
Are you sure you want to change the base?
Conversation
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Fixes #6432
This PR enables
AZD_EXT_DEBUGsupport for custom extension commands likeazd ai agent init, allowing one to attach a debugger to the extension process at startup. This is done by exportingWaitForDebugger(ctx, azdClient)in theazdextpackage to be used by extension commands.Previously,
AZD_EXT_DEBUG=trueonly worked when extensions were invoked as service targets (e.g., viaazd deploy), but not for custom extension commands.Validation
Tested
AZD_EXT_DEBUG=true azd ai agent init, which now displays the debug prompt with PID: