Debug Custom Code
This article introduces how to enable debug mode and troubleshoot code problems when using BladePipe custom code.
Procedure
- Go to the DataJob Details page. Click Functions > Modify DataJob Params in the upper-right corner of the page.
- Change the value of debugMode to true.
- Change the debugPort.
- for Docker deployment: 18787
- for Binary deployment: 8787
- Click Save in the upper-right corner of the page.
- Restart the DataJob, which will stops and waits for the remote debug client to connect.
- To remote debug, taking IDEA as an example, set the following task running address.
- Host is the Worker container or running node IP.
- Port is 18787/8787.