[jbosstools-issues] [JBoss JIRA] (ERT-346) If I add a breakpoint to a project called "node_modules" the program is not suspended [EBZ#497703]

Friendly Jira Robot (JIRA) issues at jboss.org
Fri Jul 15 07:26:00 EDT 2016


Friendly Jira Robot created ERT-346:
---------------------------------------

             Summary: If I add a breakpoint to a project called "node_modules" the program is not suspended [EBZ#497703]
                 Key: ERT-346
                 URL: https://issues.jboss.org/browse/ERT-346
             Project: Eclipse Release Train
          Issue Type: Task
          Components: JSDT
            Reporter: Friendly Jira Robot


We use feature in node that we can put out modules in a “node_modules” in a parent folder and it will be properly found: https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders

Node is working properly but if I add a breakpoint in a source file inside “node_modules” the breakpoint does not get hit. 

To reproduce the issue: 

1. Create a JavaScript project “test”. 
2. Add a file “test.js” to the project with content:
  var m1 = require("m1");
  console.log("m1.myFunc = " + m1.myFunc(3)); 
3. Create a JavaScript project called “node_modules”. 
4. Add a folder “m1” to the project “node_modules”.
5. Add a file “index.js” to the folder “m1” with content: 
  module.exports.myFunc = function( i) {
	return i*i;
  }
6. Debug “test.js” as Node – it works. Node is finding property “index.js”. 7. Add a breakpoint to “index.js”. 
8. Debug “test.js” as Node – it runs, but the breakpoint does not suspend the target. 

Is there workaround for this issues?
Most of our projects are relying on the “node_modules” being found in the parent folder. That is making most of our code hard to debug. 

I tested this on Ubuntu 14.04.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list