JetBrains / resharper-rider-plugin

https://www.jetbrains.com/help/resharper/sdk/
https://www.jetbrains.org/intellij/sdk/docs/
Apache License 2.0
177 stars 45 forks source link

Need a example for attach to process with SDK ? #79

Closed chuongmep closed 1 year ago

chuongmep commented 1 year ago

Hi team, can give a example how to use attach to process with SDK ? Thank you ! image

ForNeVeR commented 1 year ago

Check how Unity implements this.

The entry point is here: https://github.com/JetBrains/resharper-unity/blob/3f57a1b9ce1894573605e7af96cac09d24f44ef6/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/actions/AttachToUnityProcessAction.kt

The attach workflow itself is here: https://github.com/JetBrains/resharper-unity/blob/3f57a1b9ce1894573605e7af96cac09d24f44ef6/rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/configurations/RunConfigurationUtil.kt