unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.88k stars 717 forks source link

[WASM] VSCode Unbound breakpoint #4672

Closed Banyc closed 2 years ago

Banyc commented 3 years ago

Current behavior

The breakpoint set on function OnClick is dark rather than red, which won't fire when the button is clicked.

Expected behavior

The breakpoint should fire on click.

How to reproduce it (as minimally and precisely as possible)

Follow https://platform.uno/docs/articles/get-started.html#vs-code.

Workaround

Environment

Nuget Package:

Nuget Package Version(s):

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

SDK list:

Verison of extension JavaScript Debugger (Nightly): v2020.11.2617

Version of extension "C#": v1.23.6

jeromelaban commented 3 years ago

Thank you for the report.

Could you indicate which version of the Uno.UI package you are using ?

Banyc commented 3 years ago

@jeromelaban It might be 3.3.0 found by a quick search on the whole project. Sorry for missing that important info.

jeromelaban commented 3 years ago

Thank you. Also forgot to ask, on which platform are you running vscode ?

Banyc commented 3 years ago

@jeromelaban It is on Windows.

Banyc commented 3 years ago

This might be an issue with the vscode since I have encountered a similar issue on a blazorserver project.

jeromelaban commented 3 years ago

Thank you for the update.

Indeed, Uno does not do much in this area so it may be specific to OmniSharp's support for Wasm debugging.

jeromelaban commented 2 years ago

This is fixed in Uno 4.0 and later