Desktop Modeller - Debugger: Break on exceptions. - Mendix Forum

Desktop Modeller - Debugger: Break on exceptions.

39

While testing I find it often quite hard to find the point where and reason why an exception or error ocurred.

I would copy the filename shown in the console, use ctrl-g to find the Microflow and try to find the 'block' that caused the error.

If I want to know the values of the variables at the moment of the error, I would set a breakpoint at the beginning of the Microflow, and replay the scenario in the browser (if I can remember this).

It would be very nice to be able to tick a box in the Debugger tab of the Desktop Modeler: Break on Exceptions.

Ideally this would show the Microflow right before the error occures, so I can immediately inspect the values of the variables.

It would also be nice to then be able to backtrack the path (stacktrace) using ctrl-tab.

asked
5 answers

Yes, this would be a nice addition. Also the differentiation between caught and uncaught exceptions

Created

I completely support this. It will be hugely useful. Every other programing language has this feature. 
java – https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fbreakpoints%2Fref-addexception_viewaction.htm

javascript – https://umaar.com/dev-tips/32-pause-on-exception/#:~:text=Chrome%20DevTools%3A%20Automatically%20pause%20on%20any%20exception&text=Just%20enable%20'Pause%20on%20exceptions,what%20may%20have%20gone%20wrong.

Even outsystems has this – https://success.outsystems.com/Documentation/11/Developing_an_Application/Troubleshooting_Applications/Debugging_Applications/Breakpoints

 

Created

Idea is similar to: https://forum.mendix.com/link/ideas/1762

Created

Good idea!

Created

I really like the idea! I would focus on the uncatched exception errors, as the ones that are not directly catched by the microflow design are not that relevant (for example Call REST - 404 returned). The logs are most of the time very clear where the error occurs, so this should be possible!

Created