Cant hit breakpoints during Profiling run

I want to debug some code, hit a breakpoint and from there, start profiling recording. 

I have disabled the checkbox Collect profiling data from start  for all profiling modes. 
according to this https://www.jetbrains.com/help/rider/Profiling_Applications.html#analyzing-collected-snap

After this I select Run-> "Profile bla with Timeline"

But in this way no breakpoint is hit, since its a specific part in the code need to hit a breakpoint.

I have also tried starting a debug session, where I hit breakpoint, but then there is no way to start profiling. 


Is this possible? 

3 comments
Comment actions Permalink

Hello, Have you tried to start debug and then attach with profiler to the required process?

0
Comment actions Permalink

Yes, Ive tried that. But when I read the perfomance logs I dont get anything useful. The displayed data is nothing that I recognize as my own functions. Ive got the feeling that it doesnt profile my code and all the unfolding of lines just ends up in dead ends, saying absolutely nothing

Im I doing this right at all?

0
Comment actions Permalink

Hello,

Do your methods execute after attach has started or before this moment?

Do your methods persist in the Hotspots section? Could you find your methods with a "Search Functions" or "Find method in Call Tree"?

If you want to profile specific parts of the code, it is preferable using JetBrains.Profiler.API : https://www.jetbrains.com/help/profiler/2022.2/Profiling_Guidelines__Advanced_Profiling_Using_dotTrace_API.html#profiling-a-specific-part-of-the

or using JetBrains.Profiler.SelfApi :
https://www.jetbrains.com/help/profiler/2022.2/Profiling_Guidelines__Advanced_Profiling_Using_dotTrace_API.html#self-profiled-applications

0

Please sign in to leave a comment.