5

I am looking for opportunities if there any way in which I can debug my nopCommerce plugin. I am working on a large sale product on nopCommerce therefore I am in such a critical situation to make a real time test or debug. Because I am quite unable to find out from where the exception is coming. Is there any available process or kit??

Thanks in advance.

Shoumen Agdm
  • 187
  • 15

2 Answers2

5

Plugin debugging is the same as nopCommerce core debugging.

Please see admin area > system > log. It should have the entire stack trace. You can use it to the find where the exception is thrown from

Andrei M
  • 3,429
  • 4
  • 28
  • 35
0

If you want to debug an installed plugin, put a breakpoint in the method that calls the plugin.

For example, for Shipping Rate Computation Methods, you can put a breakpoint in Nop.Services\Shipping\ShippingService.cs in the GetShippingOptions method in this line:

var getShippingOptionResponse = srcm.GetShippingOptions(shippingOptionRequest);

Then just press F11 and you will be inside the plugin, debugging as usual.

Jakub Loksa
  • 537
  • 1
  • 14
  • 32