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

debug cannot find module .vscode #284

@olliejm

Description

@olliejm

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions