walekarsa - Wednesday, November 18, 2009 6:49 AM:
Hi all,
I am writing a server method using VB.Net (Eg a server event used in Workflow) . How do I debug the code while coding itself. Is there anyway by which I can check the Logic/Flow of the code. Is it that the enite method has to written and to an Item and then check the correctness of the code by actually making the item pass through the workflow.
How does one save the time in doing this.
With Regards,
tstickel - Wednesday, November 18, 2009 9:47 AM:
You can test any server method, including workflow server methods, by selecting the method in the search grid and going to the Action menu->Run Server Method.
You would have to modify a workflow server method slightly before testing it. The Me object that is automatically set for workflow server methods generally points to the activity that triggerd the server method. If you invoke the server method from "Run Server Method" tjhe Me object will not point to an activity. So you would have to set the Me object yourself at the beginning of the server method. You could find the ID of an appropriate existing activity (I just use a query in SQL to find the ID of an appropriate existing activity) and use the Innovator.getItemById method to set the Me object.
Another option would be to download and install the Workflow Automation Project (http://www.aras.com/communityprojects/?projectid=563A27F568A14B559F63E6980B40D275). It includes a Workflow Launch Example that could easily be modified to launch any workflow. This would allow you to test a workflow without attaching the workflow to an object.
PLMGuy - Friday, November 20, 2009 5:15 PM:
If you have Innovator running on your workstation and Visual Studio installed, you can insert a call to System.Diagnostics.Debugger.Break() to invoke the JIT debugger.
kr.prashant - Friday, June 4, 2010 9:53 AM:
I inserted 'System.Diagnostics.Debugger.Break() ' in my CSharp(server side) method and hoped that JIT debugger would be invoked on execution of the code, but it didn't.
Could you please let me know, anything else has to be done in either Innovator or Visual studio. I am using Visual Studio 2005 & 2008 to test with.
RobMcAveney - Friday, June 4, 2010 10:36 AM:
There's a section on debugging in the Programmers Guide (available here: http://www.aras.com/support/documentation/). Are you running the Innovator client on the server machine? If not you would need to configure remote debugging.
dennis - Thursday, September 22, 2011 5:02 PM:
What are the steps to configure remote debugging?
Brian - Friday, September 23, 2011 7:30 AM:
Remote debugging is a function of the debugger.
Go to : http://msdn.microsoft.com/en-us/library/bt727f1t.aspx to see what you need to do.
Cheers,
Brian.