microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
228 stars 12 forks source link

Cannot continue from breakpoint #1166

Open davidortinau opened 4 months ago

davidortinau commented 4 months ago

Type: Bug

With latest pre-release including XAML Hot Reload and C# hot reload I'm unable to step or continue from a breakpoint. The error/warning I get is

"Your changes are not supported by Hot Reload. The 'continue' operation was cancelled."

MAUI - v0.12.24 (pre-release) C# DevKit - v1.6.8 C# - v2.32.14 (pre-release)

Extension version: 1.6.8 VS Code version: Code - Insiders 1.90.0-insider (Universal) (ca688da9fb6dad00996cee7d5342490daa7bb1fb, 2024-05-31T01:06:26.814Z) OS version: Darwin arm64 23.5.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|8, 9, 12| |Memory (System)|16.00GB (0.10GB free)| |Process Argv|--crash-reporter-id 5ba25e45-dc74-4053-af2d-4195f88dad0b| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vsc_aacf:30263846 vscod805:30301674 vsaa593:30376534 py29gd2263:31024238 c4g48928:30535728 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pythonmypyd1:30859725 pythoncet0:30859736 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 cppperfnew:30980852 pythonait:30973460 jchc7451:31064717 showvideot:31016890 chatpanelt:31014475 9c06g630:31013171 a69g1124:31018687 dvdeprecation:31040973 pythonprt:31036556 dwnewjupytercf:31046870 nb_pkg_only:31057982 26j00206:31048877 nativerepl1:31063927 refactort:31061298 ```
isadorasophia commented 4 months ago

@davidortinau Thanks for filing this issue! Do you see any other message in the hot reload output window? You can turn on 'diagnostic' logging by setting it at C# Dev Kit > Settings > Hot Reload Verbosity. I will ask someone from the MAUI team to follow up further.

japarson commented 4 months ago

@davidortinau Which platform is your app deployed to while hitting this bug? iOS, Android, or Catalyst?

burtonrodman commented 3 weeks ago

Same with a Blazor project on Windows, running under Aspire.

Can't step or continue -- no code changes were made.

VSCode 1.93.1 on Windows C# Dev Kit v1.11.6 (pre-release)

2024-09-19 11:31:31.341 [error] D:\source\MyCompany\MyProject\MyProject\MyProject.Franchises\obj\Debug\net6.0\MyProject.Franchises.AssemblyInfo.cs (line 10): error CS8933: The using directive for 'System' appeared previously as global using 2024-09-19 11:31:31.341 [error] D:\source\MyCompany\MyProject\MyProject\MyProject.Franchises\obj\Debug\net6.0.NETCoreApp,Version=v6.0.AssemblyAttributes.cs (line 2): error CS8933: The using directive for 'System' appeared previously as global using 2024-09-19 11:31:31.342 [error] D:\source\MyCompany\MyProject\MyProject.Aspire\PlaywrightTests\obj\Debug\net8.0\PlaywrightTests.AssemblyInfo.cs (line 16): error ENC0003: Updating 'attribute' requires restarting the application. 2024-09-19 11:31:31.342 [error] D:\source\MyCompany\MyProject\MyProject.Aspire\LoadTests\obj\Debug\net8.0\LoadTests.AssemblyInfo.cs (line 16): error ENC0003: Updating 'attribute' requires restarting the application. 2024-09-19 11:31:31.342 [info] Code changes could not be applied. Restarting the application is required. 2024-09-19 11:31:45.927 [info] ❗ C# Hot Reload is unavailable for this session.