0

I want to check how DbcontextPooling is working internally and want to debug that, is there any way I will achieve that ? Thanks in advance.

Zeeshan
  • 484
  • 1
  • 5
  • 19

1 Answers1

1

Entity framework core has source link enabled. This means you can debug the EF code just like your code. You can step into any EF method from visual studio.

Assuming you have AddDbContextPool somewhere in your code, you can step into this call, add breakpoints.

Preben Huybrechts
  • 5,853
  • 2
  • 27
  • 63