Skip to content

How to detect problems in WASM #64

Closed

Description

@zbigniew-gajewski

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).

Activity

  1. jeromelaban commented on Jun 26, 2018

    @jeromelaban
    Member

    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.

  2. added
    question
    platform/wasm 🌐
    on Jun 26, 2018
  3. zbigniew-gajewski commented on Jun 26, 2018

    @zbigniew-gajewski
    Author

    Ok, thanks for the answer/advice. Then I'll be waiting for mono/Wasm debugging support and meantime experimentig with LinkerConfig.xml. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform/wasm 🌐question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions