Commit ac18cc9
[wasm] [debugger] First version of multithreaded debugging (#74820)
* First version of multithreaded debugging.
* Revert package-lock.json
* New line at package-lock.json
* Fix not used variable.
* Fix debugger on firefox.
* Rewrite code to avoid duplicated code.
* Fix where mono_init_debugger_agent_common is called.
* Remove whitespace.
* Update src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* [wasm] Debugger tests: support running with multithreaded runtime
* Add runtime-wasm-dbgtests pipeline with debugger tests running on a multi-threaded runtime
* Add multi-threaded debugger tests to runtime-wasm
* fix yml
* Always run the new tests when the pipeline is invoked manually
* Pass through extra build args for wasm debugger tests
* Addressing @radical comments.
* Apply suggestions from code review
Co-authored-by: Ankit Jain <radical@gmail.com>
* addressing radical comments
* Fixing tests failures and adding a schema to run a test that will only run in a multithreaded environment.
* Adding support for run debugger-tests in a multithreaded runtime.
* Fix running debugger tests for multithreaded runtime, passing sessionId where it's necessary.
* Fix CI.
* Addressing @radical comments
Adding a test case.
* Update src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasm/debugger/DebuggerTestSuite/MiscTests.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasm/debugger/DebuggerTestSuite/InspectorClient.cs
Co-authored-by: Ankit Jain <radical@gmail.com>
* Dictionary with the scriptId also uses sessionId.
* Addressing @radical review.
* Apply suggestions from code review
Co-authored-by: Ankit Jain <radical@gmail.com>
* Avoiding getting this error: Cannot transition thread 0x2a15360 from STATE_BLOCKING with DO_BLOCKING.
In the transport_send we don't save the thread context, we save it before the send function.
* Addressing @radical comments.
* Using more threads in unit test.
* Apply suggestions from code review
Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing @radical comments, and trying to fix ci.
* Removing unnecessary changes.
* Export function used on mini-wasm-debugger.
* Fixing line number.
* Fix run tests on release.
* fix compilation for multithread runtime
* trying to fix multithread debugger tests on ci
* trying to fix debugger tests on ci
* disabling tests on multithreaded runtime
* Update eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml
Co-authored-by: Ankit Jain <radical@gmail.com>
* Throwing an exception if the "what" is not the one that is being get from the nextNotificationQueue.
---------
Co-authored-by: Ankit Jain <radical@gmail.com>1 parent d28e6ce commit ac18cc9
File tree
31 files changed
+414
-139
lines changed- eng/pipelines
- common/templates
- extra-platforms
- src/mono
- mono/component
- wasm
- debugger
- BrowserDebugProxy
- Firefox
- DebuggerTestSuite
- Wasm.Debugger.Tests
- tests/debugger-test
- host
- runtime
- es6
31 files changed
+414
-139
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
| |||
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
417 | | - | |
| 414 | + | |
418 | 415 | | |
419 | 416 | | |
420 | 417 | | |
| |||
424 | 421 | | |
425 | 422 | | |
426 | 423 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 424 | | |
437 | 425 | | |
438 | 426 | | |
| |||
528 | 516 | | |
529 | 517 | | |
530 | 518 | | |
| 519 | + | |
| 520 | + | |
531 | 521 | | |
532 | 522 | | |
533 | 523 | | |
| |||
814 | 804 | | |
815 | 805 | | |
816 | 806 | | |
817 | | - | |
818 | | - | |
819 | 807 | | |
820 | 808 | | |
821 | | - | |
822 | 809 | | |
823 | 810 | | |
824 | 811 | | |
825 | 812 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
| 813 | + | |
836 | 814 | | |
837 | 815 | | |
838 | 816 | | |
| |||
852 | 830 | | |
853 | 831 | | |
854 | 832 | | |
855 | | - | |
856 | 833 | | |
857 | 834 | | |
858 | 835 | | |
| |||
1636 | 1613 | | |
1637 | 1614 | | |
1638 | 1615 | | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1639 | 1641 | | |
1640 | 1642 | | |
1641 | 1643 | | |
| |||
1646 | 1648 | | |
1647 | 1649 | | |
1648 | 1650 | | |
1649 | | - | |
1650 | 1651 | | |
1651 | 1652 | | |
1652 | | - | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | 1659 | | |
1664 | 1660 | | |
1665 | | - | |
| 1661 | + | |
1666 | 1662 | | |
1667 | 1663 | | |
1668 | 1664 | | |
| |||
2255 | 2251 | | |
2256 | 2252 | | |
2257 | 2253 | | |
2258 | | - | |
2259 | | - | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2260 | 2257 | | |
2261 | 2258 | | |
2262 | 2259 | | |
2263 | 2260 | | |
2264 | 2261 | | |
2265 | | - | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
2266 | 2265 | | |
2267 | 2266 | | |
2268 | 2267 | | |
| |||
2855 | 2854 | | |
2856 | 2855 | | |
2857 | 2856 | | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2858 | 2860 | | |
| 2861 | + | |
2859 | 2862 | | |
2860 | 2863 | | |
2861 | 2864 | | |
| |||
3762 | 3765 | | |
3763 | 3766 | | |
3764 | 3767 | | |
| 3768 | + | |
3765 | 3769 | | |
3766 | 3770 | | |
3767 | 3771 | | |
| |||
3910 | 3914 | | |
3911 | 3915 | | |
3912 | 3916 | | |
3913 | | - | |
| 3917 | + | |
3914 | 3918 | | |
| 3919 | + | |
3915 | 3920 | | |
3916 | 3921 | | |
3917 | 3922 | | |
| |||
9313 | 9318 | | |
9314 | 9319 | | |
9315 | 9320 | | |
9316 | | - | |
| 9321 | + | |
9317 | 9322 | | |
9318 | 9323 | | |
9319 | 9324 | | |
| |||
9498 | 9503 | | |
9499 | 9504 | | |
9500 | 9505 | | |
9501 | | - | |
9502 | 9506 | | |
9503 | | - | |
9504 | 9507 | | |
9505 | 9508 | | |
9506 | 9509 | | |
| |||
9514 | 9517 | | |
9515 | 9518 | | |
9516 | 9519 | | |
9517 | | - | |
9518 | 9520 | | |
9519 | | - | |
9520 | 9521 | | |
9521 | 9522 | | |
9522 | | - | |
9523 | 9523 | | |
9524 | | - | |
9525 | | - | |
9526 | | - | |
9527 | 9524 | | |
9528 | 9525 | | |
9529 | 9526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
| |||
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| 439 | + | |
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
| 445 | + | |
| 446 | + | |
443 | 447 | | |
| 448 | + | |
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
447 | | - | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
| |||
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
457 | | - | |
458 | | - | |
459 | | - | |
| 462 | + | |
460 | 463 | | |
461 | 464 | | |
462 | 465 | | |
| |||
0 commit comments