optimajet/WorkflowEngine.NET

Enable action debugging while in release mode and there is no debuggers attached throws an excpetion and force close the application

Yousefjb opened this issue · 3 comments

Enable action debugging while in release mode and there is no debuggers attached throws an excpetion and force close the application

Please, describe this trouble more.

If you try to edit an action code via the designer and set the comment /*break*/ to indicate a break point and enable action dubug via runtime.CodeActionDebugOn(), then insted of hitting F5 in visual studio to run the debugger you can press Ctrl + F5 which start the application (my app) without the debugger, when the workflow engine reachs the /*break*/ and try to execute it it will hang the app and need to force close it.
However, insted of writing /*break/ you can write :

#if DEBUG 
/*break*/ 
#endif

and everything works smoothly

We will fix it in the next version of WFE.