3

We are using the online version of CRM. I have created a custom workflow but I can't seem to locate anything that will tell me how to debug it. Everything I've read refers to copying the pdb file into the server bin/assemblies folder. Since we're not using the on-premise version I'm not sure where to go from here. Can anyone point me to some type of documentation to do this?

shytikov
  • 9,155
  • 8
  • 56
  • 103
Gary
  • 1,784
  • 4
  • 18
  • 38

2 Answers2

4

Please refer this post to debug Custom Workflow in CRM Online.

Click here

Anish
  • 588
  • 6
  • 21
2

You need to use the ITracingService, which is more like alert("I'm here!") rather than proper debugging.

In any case it's just like debugging a plugin and is described here: Debug a Plug-In - Logging and Tracing

An alternative method to debug a plug-in is to use tracing. Tracing assists developers in troubleshooting plug-ins by providing run-time plug-in information as an aid in diagnosing the cause of plug-in failure. Tracing is especially useful to debug Microsoft Dynamics CRM Online registered plug-ins as it is the only supported debugging method for that scenario.

...

The tracing service was implemented to provide sandboxed plug-ins and custom workflow activities with a means to output run-time information when an exception is thrown.

James Wood
  • 17,286
  • 4
  • 46
  • 89