I am using node v6.10.0 and trying to understand why my -debug-brk is so incredibly slow. Without this flag (with just -inpect or -debug), it is almost instantaneous, although the debugger still takes forever.
This flag significantly increases boot time. My project runs 50 s + to start when debugging is enabled.
Any ideas on how to start debugging this problem?
Edit: To be clear, this happens on two computers and does not happen with Hello World.
Edit 2: Details. I am using es6. I used webstorm to get out of what was happening and found that it just reads all my modules forever? Maybe what's going on?
Is there any way to speed this up? It takes 34 seconds to download all the required statements.
Edit 3: These are absolutely files and require operators. I moved some of the request-only statements after establishing a connection to the database. The connection is established instantly, but the process freezes forward after this (again a few seconds).
Is there any way to speed this up?
source
share