ApplyStartupHook diagnostic IPC command#3918
Conversation
davmason
left a comment
There was a problem hiding this comment.
Just the one thing and it looks good to me.
|
@jander-msft are you waiting for the design to be approved before working on the runtime side, or did I miss a PR? |
I'm actively working on it here: https://github.com/dotnet/runtime/pull/86813/files. Please provide any feedback you feel necessary. The intent is that the startup hook is cached during startup diagnostic suspension and applied when resumed; a follow up PR will enable automatically applying and executing the startup hook when managed code is already running. |
1fc1d91 to
5de35f5
Compare
|
/azp run diagnostics-public-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
These changes add a new command that provides the .NET runtime a path to a managed assembly that contains a startup hook. Issuing this command during diagnostic suspension would be similar to prepending the path to the
DOTNET_STARTUP_HOOKSenvironment variable before launching the target process.Corresponding runtime change: dotnet/runtime#86813
cc @dotnet/dotnet-monitor