microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.87k stars 139 forks source link

Use `subrepo` to link to PyDev.Debugger instead of copying it #1714

Closed rchiodo closed 1 month ago

rchiodo commented 1 month ago

This changes debugpy to subrepo PyDev.Debugger instead of just having a copy of it. This should make it easier to push commits between the two repositories.

Subrepo isn't like git submodule though. We are sync'd to a specific commit of PyDev.Debugger. Any changes to PyDev.Debugger have to be pulled into debugpy (and vice versa changes here have to be pushed to PyDev.Debugger).

I also made changes to get the latest commit PyDev.Debugger to work with debugpy. There was a problem with lambdas in pydevd_sys_monitoring messing up entry point breakpoints. The fix I made was to eliminate the lambda usage.

rchiodo commented 1 month ago

Here's the PR into PyDev.Debugger:

https://github.com/fabioz/PyDev.Debugger/pull/295

I made this with just the subrepo command: python subrepo.py branch -m "rchiodo/update_from_debugpy

And then: git push -f https://github.com/rchiodo/PyDev.Debugger subrepo/src/debugpy/_vendored/pydevd:rchiodo/update_from_debugpy