Profiling Grasshopper Plugin with Visual Studio 2019


is it possible to profile a Grasshopper C# plugin with Visual Studio 2019? I did some quick tests but VS always displays the function calls under [External Code] and does not show any of my plugin code…

Thanks & best,

Partial answer by myself:

  • make sure to install all C# components of VS
  • use the profiling-while-debugging feature
  • make sure to enable the debug/trace flags in your C# project

Are you still having problems with the Visual Studio profiler? It should work.

It does not produce meaningful stack traces (just [External Code]) when I start the profiler directly. Using CPU profiling while debugging does produce useful results - that’s ok for me for the moment. Will investigate later again.