foreach -parallel runs in a different runspace like start-threadjob.
Adam Driscoll made a video on debugging runspaces. We actually talk in that reddit thread about foreach -parallel.
https://www.reddit.com/r/PowerShell/comments/gn0270/advanced_powershell_debugging_techniques/
Powershell 7.1 preview 6 has an experimental feature (it may get changed in production) to debug other runspaces: https://devblogs.microsoft.com/powershell/powershell-7-1-preview-6/