spenceforce / pdb-attach

A python debugger that can attach to running processes.
BSD 3-Clause "New" or "Revised" License
33 stars 1 forks source link

Windows support #4

Open spenceforce opened 3 years ago

spenceforce commented 3 years ago

Currently pdb-attach only support linux.

spenceforce commented 3 years ago

Windows support will probably require a different implementation since os.kill does not have the same functionality seen in Python for Linux.

AlucardNosferatu commented 3 years ago

module 'signal' has no attribute 'SIGUSR2'

spenceforce commented 3 years ago

This package uses signals to initiate the socket connection that allows pdb to interact with the client. Unfortunately signals on Windows don't work the same as on POSIX, so for the time being this package can't be used on Windows platforms. Adding Windows support will require a different implementation that doesn't use signals. To mitigate this confusion, I will make this package throw an exception when imported on Windows.