[debugger][wasm] Implement Debugger.IsAttached on wasm (#42532)
authorThays Grazia <thaystg@gmail.com>
Thu, 15 Oct 2020 19:28:58 +0000 (16:28 -0300)
committerGitHub <noreply@github.com>
Thu, 15 Oct 2020 19:28:58 +0000 (14:28 -0500)
commite549253dedf3ed9e79282582068c6e27a7a17efe
treea2718e4a5f153db16055d9f385f85ed76fb34f12
parent8ebd56d7fcccc0bde260832d37063adfa7a63b96
[debugger][wasm] Implement Debugger.IsAttached on wasm (#42532)

* Debugger.IsAttached is now working on wasm. And can be used to detect if debugger is attached.
Fix #42411

* Update src/mono/wasm/runtime/library_mono.js

Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
* Using the infrastructure to not send dynamically loaded assemblies if debugger is not attached.
Changing where to check if the assembly is already added to avoid unnecessary checks.

* Checking the assembly name size.

Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
src/mono/mono/mini/mini-wasm-debugger.c
src/mono/mono/mini/mini-wasm.h
src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
src/mono/wasm/runtime/driver.c
src/mono/wasm/runtime/library_mono.js