I was trying to debug Serilog middleware and for me it was stuck. Then I tried debugging Startup methods(UseSwagger to be exact) which adds middleware and when I stepped in them then debug breakpoint was working on Serilog's code too. So you have to debug step by step any code from library which isn't written by you