microsoft / vscode-dapr

A Visual Studio Code extension for Dapr development
Other
58 stars 18 forks source link

Error "Unable to find an attachable process for application" attempting to attach python app #301

Open stuartleeks opened 1 year ago

stuartleeks commented 1 year ago

I got the error Unable to find an attachable process for application when attempting to attach to a running Dapr app.

image

The app is written in python and digging into the extension code I found this comment in the attachToPythonProcess function:

 // NOTE: I've yet to see this succeed (the adaptor can't seem to attach to the process).

Is it expected that attaching to python apps should work?

philliphoff commented 1 year ago

It was...hopeful..that it might work, but I was never able to get the debug adaptor to actually attach in my own testing. As my Python is pretty weak, I wasn't able to determine any reason for this.

guybartal commented 2 months ago

happened to me as well while trying to attach to python flask app:

image

Error: Unable to find an attachable process for the application 'media-indexer-api'.