Skip to content

Conversation

@rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Oct 29, 2024

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.

…bugpy/_vendored/pydevd

subrepo:
  subdir:   "src/debugpy/_vendored/pydevd"
  merged:   "7d6e6e68"
upstream:
  origin:   "https://github.com/fabioz/PyDev.Debugger.git"
  branch:   "main"
  commit:   "7d6e6e68"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
…src/debugpy/_vendored/pydevd

subrepo:
  subdir:   "src/debugpy/_vendored/pydevd"
  merged:   "cf2e47cb"
upstream:
  origin:   "https://github.com/fabioz/PyDev.Debugger.git"
  branch:   "main"
  commit:   "cf2e47cb"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
@rchiodo rchiodo requested a review from a team as a code owner October 29, 2024 19:42
copy run_code_on_dllmain_x86.pdb ..\run_code_on_dllmain_x86.pdb /Y

cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /PROFILE /GUARD:CF /out:inject_dll_x86.exe
cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /PROFILE /GUARD:CF /CETCOMPAT /out:inject_dll_x86.exe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we have to fix these compiler and linker flags up every time we pull from PyDev.Debugger, or are we trying to push these changes back to him?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to push this back to him now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had made these changes there but missed a spot, this is my changes coming back

@rchiodo rchiodo merged commit a7d5a7e into microsoft:main Oct 29, 2024
21 of 24 checks passed
@rchiodo rchiodo deleted the rchiodo/subrepo_pydevd branch October 29, 2024 20:33
@rchiodo
Copy link
Contributor Author

rchiodo commented Oct 29, 2024

Here's the PR into PyDev.Debugger:

fabioz/PyDev.Debugger#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

rchiodo added a commit to rchiodo/debugpy that referenced this pull request Nov 14, 2024
…oft#1714)

* Remove copy of pydevd and add subrepo script

* git subrepo clone https://github.com/fabioz/PyDev.Debugger.git src/debugpy/_vendored/pydevd

subrepo:
  subdir:   "src/debugpy/_vendored/pydevd"
  merged:   "7d6e6e68"
upstream:
  origin:   "https://github.com/fabioz/PyDev.Debugger.git"
  branch:   "main"
  commit:   "7d6e6e68"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"

* Add binskim settings to match debugpy

* git subrepo clone --force https://github.com/fabioz/PyDev.Debugger.git src/debugpy/_vendored/pydevd

subrepo:
  subdir:   "src/debugpy/_vendored/pydevd"
  merged:   "cf2e47cb"
upstream:
  origin:   "https://github.com/fabioz/PyDev.Debugger.git"
  branch:   "main"
  commit:   "cf2e47cb"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"

* Remove unnecessary string test by removing the lambda in pydevd_sys_monitoring

* Fix linter

* Put back the fix in qt_loaders

* Put back binskim flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants