Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

debug cannot find module .vscode #284

Open
olliejm opened this issue Oct 22, 2018 · 0 comments
Open

debug cannot find module .vscode #284

olliejm opened this issue Oct 22, 2018 · 0 comments

Comments

@olliejm
Copy link

olliejm commented Oct 22, 2018

Environment details

  • OS: Windows Server 2016
  • Node.js version: v8.12.0
  • npm version: 6.4.1
  • @google-cloud/functions-emulator version: 1.0.0-beta.5

Steps to reproduce

  1. Start emulator with functions start
  2. Deploy function with functions deploy myfunction --trigger-http
  3. Attempt debug with functions inspect myfunction

I get the following output:

Error: Cannot find module 'C:\path\to\repo\.vscode'

Trying to run functions debug instead gives this error:

ERROR: Function worker crashed with exit code: 9
undefined(node:8440) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.

I have a launch.json configuration added as follows, as specified here:

{
      "name": "Debug Function",
      "type": "node",
      "request": "attach",
      "port": 5858
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant