You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experimenting with third-party library for exchanging data between client and web server (Breeze.Sharp to be precise). Source code has been added to the solution as a .Net Standard 2.0 class library and then added as a reference to:
separate console application
Uno.Wasm project
Console application works correctly (correctly retrieve data).
Identical client code in Uno.Wasm shows NullReferenceException in browser console. I was able to detect the line which throwing exception, but the problem is caused by some 'earlier' code which is difficult to identify.
Is there any possibility to 'debug' Wasm code more precisely? At least to detect which part of the project is responsible for the problem - Wasm, Mono, Uno or some configuration (I have noticed, that some libraries must be added to the LinkerConfig.xml file).
Unfortunately, at present time, it is not possible to debug a mono-wasm app. The mono team is currently working on adding support for this, though.
That being said, your issue could be related to the linker doing some extra work. You can try adding most of your assemblies to the LinkerConfig.xml file.
You can also try your code with the bare minimum, using a sample like this one which only contains references to mono-wasm, not Uno. This will reduce your search area.
Activity
jeromelaban commentedon Jun 26, 2018
Unfortunately, at present time, it is not possible to debug a mono-wasm app. The mono team is currently working on adding support for this, though.
That being said, your issue could be related to the linker doing some extra work. You can try adding most of your assemblies to the LinkerConfig.xml file.
You can also try your code with the bare minimum, using a sample like this one which only contains references to mono-wasm, not Uno. This will reduce your search area.
zbigniew-gajewski commentedon Jun 26, 2018
Ok, thanks for the answer/advice. Then I'll be waiting for mono/Wasm debugging support and meantime experimentig with LinkerConfig.xml. Thanks!
chore: MOAR LOGGING
chore: MOAR LOGGING
fix: address PR review comments
fix: address PR review comments