创建一个dynamics CRM workflow (六) - Debugging Custom Workflows

我们也deploy部署了custom workflows, debugging是开发当中不可或缺的一个步骤.

debug workflow的步骤和debug有些许不一样:

1. install profiler

2. 从 列表中选择 plugin profiler 并且点击 profile workflow 按钮

 

 Install Profiler

 

 

右击 Plugin-in Profiler -> start Profilling workflow。

这里workflow的start Profilling 和plugin的有些许的不同。 workflow必须在plugin-in Profiler中来start Profilling。

 

 之后我们要选择正确的workflow和steps。

我们在plugin当中介绍的是execution。 因为我们workflow是async下来运行的。 所以我们这次要介绍persist to entity的方式debug。

 

 

当profiled之后, 会显示以下的信息

 

下一步要清楚workflow是在什么步骤trigger的。 e.g. 如果是create contact步骤trigger的, 我们就要去create contact来触发这个workflow。

 

start execution之前,我们需要visual studio里面打开debug 并且attach到 registration tool。

 下一步我们需要start execution。

 

 

posted @ 2019-05-23 16:13  TheMiao  阅读(507)  评论(0编辑  收藏  举报