Yang Chen
Yang Chen

Reputation: 55

How to implement a DebugProgramRunner

I have a javascript execution engine, which based on NodeJs.I use idea start my execution engine, then it start a node by command "node --inspect-brk=30000 example.js", i don't know how to implement a debugProgramRunner to connect to that node, what should i do?

I am not sure, but now i implement a NodeJSDebuggableConfiguration and override createDebugProcess method, nodejs debug connection is based on web socket, what type of VmConnection should i use?

Upvotes: 0

Views: 43

Answers (1)

de1mar
de1mar

Reputation: 1216

Probably, it's enough to return NodeDebugProgramRunnerKt.createDebugProcess(this, socketAddress, session, executionResult) in createDebugProcess, it will create VmConnection itself.

Upvotes: 1

Related Questions