I am working on a node.js application and sometimes it freezes. I assume this is because the user code stream is frozen. This seems to happen after about 5 minutes of use, but I have no idea why. Are there any tools that let you know where he came to a standstill? Besides adding a log to each line.
Updated to add more information ....
I added some trace statements and narrowed them down to the following code:
exports.addLocationToRoute = function(req, res) { console.log("27"); console.log(req.body); var queryConfig = { text: "INSERT INTO route_locations (route_id, location_id, order_id) VALUES ($1, $2, $3);", values: [req.params.id, req.body.locationId, req.body.order] }; pg.connect(conString, function(err, client) { console.log("28"); ...
I see 27 output in the trace, but not 28. Is there a way to see why it is frozen between these two points?
update 2:
I just tried to play again, and it froze at another point in the code, but at this point it also calls
pg.connect(conString, function(err, client) {
source share