console.log() messages placed within custom nodes in n8n are not displayed in the browser console. This is because custom nodes run in the backend of n8n, not in the frontend of the browser. As a result, the logs generated by console.log() are only available in the server logs.
If you’re running n8n locally (CLI or Docker):
Check your terminal or Docker logs where n8n is running, your console.log() output will show there.
Documentation: Logging | n8n Docs
If you’re using n8n cloud:
If you want to see data for debugging in the browser:
You can use the Code node to inspect the data and return it in the workflow, making it visible in the n8n interface. Use return inside your Function or custom node to output data visibly in the UI:
console.log("debug"); // only visible in backend logs
return [{ json: { message: "debug here too" } }];
This way, you can see your data in the Execution panel instead of relying on the console.