-
Notifications
You must be signed in to change notification settings - Fork 67
Local attach #200
Comments
FYI regarding local attach and Python 3.7: microsoft/PTVS#4145 |
@karthiknadig @MikhailArkhipov @int19h Highlevel Solution:
Lets talk about this Next week. @int19h I looked at this because I was working on a totally different debugging scenario and came across the injection code in Pydev. Drawbacks:
|
As a note, in the attach to process there's a provision to break into existing threads (specifically in https://github.com/Microsoft/ptvsd/blob/master/ptvsd/_vendored/pydevd/pydevd_attach_to_process/dll/attach.cpp#L1224 it sets the internal state to a thread and then calls the settrace in it). This file is very close to the attach from ptvsd, so, it should be relatively straightforward to port the Python 3.7 fix from zooba/PTVS@62d6268. |
Here's the prototype code - https://github.com/DonJayamanne/ptvsd/commits/attach
|
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
Add --pid option to ptvsd command line. When used, injects the debugger into the process with the specified ID, such that it connects back to the specified host/port.
API is probably a bit of a misnomer, since it's basically just a command line switch (or, alternatively, invoking |
Need to investigate how to implement attaching directly to a local running process (i.e. not via remote debugging) with pydevd. We already ship the attach helper DLLs, but it's likely that they won't "just work", because of the way we deploy pydevd inside of our own package.
The text was updated successfully, but these errors were encountered: