diegohaz / rest

REST API generator with Node.js, Express and Mongoose
MIT License
1.79k stars 312 forks source link

Debugging with vscode | es6 imported variables not visible by the debugger #249

Closed fmagno closed 3 years ago

fmagno commented 3 years ago
image

Hi,

I understand this is not specifically a diegohaz/rest issue but I believe it may be affecting a lot of people who use this package.

Kind regards,

fmagno commented 3 years ago

Apparently it is possible to access imported variables by prefixing those with underscore _.

E.g import { env, mongo, port, ip, apiRoot } from './config'

apiRoot is accessible in the debugger panel via _apiRoot