[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>