Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Created Unassigned: breakpoint not hit due to file name case sensitivity [898]

$
0
0
When there is difference in file name case in package.json -> main, working with the files in IDE works fine, but breakpoints don't.

Imagine:
_index.js_
```
require('something');
```

_node_modules/something/package.json_
```
{ "main": "lib/SoMeTHiNG.js" }
```
_node_modules/something/lib/something.js_
```
console.log(); // breakpoint here does not hit
```

I'd suggest adding some kind of warning if the file can be found, but the casing is not exactly the same. This could save you a headache if you develop in VS and then try to run it on a Linux production machine.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>