How to use doppler with node debugger

Hi Doppler team,

We are trying to set up our IDE’s debugger with doppler by starting our server with this command
doppler -c <config-name> run npx babel-node --inspect backend/index.js

^ this works on the command line, but the debugger session never starts the server

If we run the debugger without Doppler, with the command npx babel-node --inspect backend/index.js, the server starts but we are missing env vars

Have you run into this before?

Hey @axw does this work for you:

doppler -c <config-name> run -- npx babel-node --inspect backend/index.js

I added a -- after the run argument.

We tried that, and it doesn’t work.

Here’s what we’re doing now as a workaround -

  • we’re running Doppler + the server on the command line
  • we’re having the debugger attach to that session on the command line

Our hypothesis right now is that the IDE’s debugger is waiting for some signal from Doppler before executing the server start code. We’re not sure if there’s anything that can be done to fix this, but hopefully this is helpful

Sorry for the delay, it has been a hectic day with our launch. While we are looking at it internally, could you try:

doppler -c <config-name> run --command="npx babel-node --inspect backend/index.js"