Shushu
Shushu

Reputation: 792

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"

Thanks, Shushu

Upvotes: 3

Views: 1146

Answers (1)

Shushu
Shushu

Reputation: 792

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.

Upvotes: 1

Related Questions