Tips for debugging views in Process Portal
You can debug the lifecycle method for your views in Process Portal.
Before you begin
Before you start debugging your views, you must enable JavaScript debugging in Process Portal. See Enabling tracing for coaches. You should also ensure that the client-side human service containing the views that you want to test is either exposed as a startable service or is contained in a BPD which is exposed to start in the Process Portal.
Use the view debugging tips that correspond to your chosen browser.
Internet Explorer 11
- Log in to Process Portal.
- Open the Developer tools from the tool bar or by pressing F12 and go to the Debugger tool.
- In Process Portal, launch the client-side human service or BPD that contains the view that you want to test.
- The Internet Explorer Debugger tool stops at a debugger statement at the beginning of the coach initialization. You can see the generated page for the coach.
- Locate the view lifecycle method code and set breakpoints as required.
- Continue normal JavaScript debugging in the Internet Explorer Debugger tool.
Google Chrome
- Log in to Process Portal.
- Open the Google Chrome Debugger (F12).
- In Process Portal, claim your task or start the exposed client-side human service that you want to test.
- When Chrome Debugger stops at a debugger statement at the beginning of the coach initialization, click Resume script execution.
- Click Refresh in the browser.
- When Chrome Debugger stops again, click Resume script execution to allow
the debugger tool to continue when you see (engine.setTitle("Portal"); OR
engine.setTitle("Work");). Follow the debugger statement until you see the
generated page for your coach.
- For a task, click Resume script execution until the debugger tool stops at the page that contains the line engine.setTitle("<your_coach_title>");. Follow the debugger statement in the code.
- For an exposed client-side human service, restart the human service in Process Portal after
the browser refresh. The debugger tool will stop at the page that contains the line
engine.setTitle("<your_coach_title>");. Follow the debugger statement in the
code.Tip: For the rare case when the page source is still not displayed when the debugger stops, click Work in the navigation section and restart the human service or reclaim the task.
- Set breakpoints in your view lifecycle method as required.
- Continue normal JavaScript debugging in the Chrome Debugger tool.
Mozilla Firefox
- Log in to Process Portal.
- Open the Firefox Debugger.
- In Process Portal, launch the client-side human service or BPD that contains the view that you want to test.
- The Firefox Debugger tool stops at a debugger statement at the beginning of the coach
initialization. You can see the generated page for the coach. Note: You might encounter an issue where Firefox Debugger does not display the generated page for your coach. If this occurs, click Click to resume in the Debugger tab, then right-click on the coach and select to reload the coach iFrame.
- Locate the view lifecycle method code and set breakpoints as required.
- Continue normal JavaScript debugging in the Firefox Debugger tool.