I'm new to NodeBB and node.js.
Before trying to debug NodeBB, set the NodeBB to working condition.
I use IntelliJ for development, so I created an empty "web static" to where NodeBB is located, then create a new "node.js" configuration. "JavaScript file" set to "app.js".
The NodeBB on my machine runs with MongDB.
After started NodeBB via the IDE, I can visit the forum, but there are some noticeable differences visually. Some buttons don't work neither, e.g., New Topic.
I also got the following error:
Failed to open socket on port 53023, waiting 1000 ms before retrying
I got some clue for the error, it might be related to "debugging a clustered app".
The whole message:
/usr/bin/node --debug-brk=57296 --nolazy app.js dev
debugger listening on port 57296
2/2 18:32 [19242] - info: NodeBB v0.6.1-dev Copyright (C) 2013-2014 NodeBB Inc.
2/2 18:32 [19242] - info: This program comes with ABSOLUTELY NO WARRANTY.
2/2 18:32 [19242] - info: This is free software, and you are welcome to redistribute it under certain conditions.
2/2 18:32 [19242] - info:
2/2 18:32 [19242] - info: Time: Mon Feb 02 2015 18:32:10 GMT+0000 (GMT)
2/2 18:32 [19242] - info: Initializing NodeBB v0.6.1-dev
2/2 18:32 [19242] - warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
debugger listening on port 57296
2/2 18:32 [19242] - info: NodeBB is now listening on: 0.0.0.0:4567
Failed to open socket on port 57296, waiting 1000 ms before retrying
Failed to open socket on port 57296, waiting 1000 ms before retrying