Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging nodejs while using Kinesis MultiLangDaemon/KCL

Following this post I was able to connect our existing nodejs code into Kinesis logs (using KCL and MultiLangDaemon).

The problem is that I can't debug the code anymore. Since MultiLangDaemon uses STDIN/STDOUT to interact with executed "script", once I call "node --debug" and get the message:

"debugger listening on port 57846"

I get an error from the MultiLangDaemon saying:

"SEVERE: Received error line from subprocess [debugger listening on port 57846] for shard shardId-000000000000"

  • Is there a way to execute nodejs "quietly", so it won't send this STDERR message ?
  • Does anyone have experience with MultiLangDaemon and debugging ?

Thanks, Shushu

like image 651
Shushu Avatar asked Aug 22 '26 05:08

Shushu


1 Answers

I got an answer in here, recommending to work with node inspector. After installing, all I had to do is to change the kinesis.properties executableName from "node" to "node-debug", and I got it working.

like image 153
Shushu Avatar answered Aug 25 '26 12:08

Shushu