Running an application in Debug mode
This document discusses the debugging capabilities within RunMyProcess.
2 Running an application in Debug Mode
2.1 Switching to debug mode
P_attributes=debug parameter to the application's URL will enable debug mode.
If the URl of an application in TEST is
the URl of the application in TEST in Debug mode is
Two methods are available for facilitating instrumentation:
- RMPApplication.debug(message) : this method will display the message in the browser console (only in debug mode).
(N.B. The browser console can be opened by Control+Shift+J (Windows/Linux) or Option+J (Mac).)
1 Example of the use of the debugable method.
1 2 3 4 5 6 7 8
In debug mode, the browser console will display :
1 2 3
2 Example of the use of the debug method
In debug mode, the console will display :
Advantages of Instrumentation
- Instrumentation has no impact when NOT in debug mode;
- Chronometer for all instrumented methods;
- Log of all intrumented methods calls;
- Parameters are logged;
- Easy to use.