Bug 1001179

Summary: Allow users to debug node.js applications
Product: OKD Reporter: Andre Dietisheim <adietish>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED UPSTREAM QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfojtik
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://www.openshift.com/forums/openshift/remote-debugging-nodejs-app-from-eclipse-is-it-possible-how-to#comment-33059
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 15:49:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andre Dietisheim 2013-08-26 15:51:58 UTC
Description of problem:
There's currently no obvious way for users to debug node.js applications.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
Try to remote debug a node.js application using Eclipse/NodeSDK as it is described here: https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger. This requires the user to be able to attach the Eclipse debugger to port :5858. Ideally a user would be able to forward port 5858 to his local machine and attach the debugger to it. For as7/eap6 we currently have the debugging port forwardable/exposed as soon as the user adds the enable_jpda marker. I guess that a similar approach for node-js would be great.
Actual results:
There's currently no way 

Expected results:


Additional info:

Comment 1 Andre Dietisheim 2013-08-26 18:03:58 UTC
FYI there's a lengthy list of available tools to debug node applications at http://stackoverflow.com/questions/1911015/how-to-debug-node-js-applications.

Comment 2 Michal Fojtik 2013-09-09 10:09:42 UTC
I guess this will require to allow users opening ports, which is WIP now.