* Fix debugger stepping actions in forked process
Fix the debugger stepping state when debugging a process that has been
forked from the main process. The new sys.monitoring mechanism didn't
fully clear the thread local storage after a fork leading to a state
where the forked child process tracked the wrong thread information and
was never updated on the latest continue action.
* Add stepping test for forked process
* Add line ending back in for cleaner diff
* More formatting reversions
* Fix multithreaded stepping to not have 'return' events when a thread is already suspended
* Update after removing blank line
* Remove unnecessary change for start method
This is pulling in @fabioz's latest changes for sys.monitoring and then fixing up any issues found with the debugpy tests.
A lot of the changes were made by Fabio since the latest pull from pydevd, so I also created this PR to compare what changes I made to Fabio's baseline:
rchiodo/PyDev.Debugger#1
Meaning you really only need to look at that other PR to see what changes I made. The rest of the changes here are from Fabio or ruff doing reformating.
After this goes through, we should have sys.monitoring support in debugpy. We can decide later if we want to implement our own support as @int19h started.
Fixes#1496