microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.41k stars 29.33k forks source link

Debugger breaks the connection of aerospike DB #60026

Closed NitinHsharma closed 6 years ago

NitinHsharma commented 6 years ago

Steps to Reproduce:

  1. write nodejs application which creates a single connection of aerospike on the app load.
  2. write CRUD operation of aerospike and try to run using the debugger.

It's breaking if we run the CRUD operation in debugging mode, but working the same while running without debugging mode.

What it looks like when we use the debugger, heartbeat of DB connection got lost (might be debugger take CPU lock cycle or it takes main thread)

Maybe using separate thread or co-worker for debugger can solve the above issue.

NOTE: same case with another DB (mongo, redis ) working fine with and without a debugger.

Does this issue occur when all extensions are disabled?: Yes

isidorn commented 6 years ago

TThis souns like a nodejs bug or aerospike. Please file ti there and not in vscode. Thanks