Skip to content

Crashing when launching Chrome debugger #760

Description

@endquote

I have a Haul project, and am able to turn on debugging such that Haul launches Chrome and lets me debug. This is great.

If instead I run my project in a VScode devcontainer, Chrome isn't available. Haul tries to launch Chrome, fails, and crashes:

error ▶︎ Error: spawn google-chrome ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn google-chrome',
  path: 'google-chrome',
  spawnargs: [ 'http://mymachine:8081/debugger-ui' ]}

Looking at launchBrowser.ts, it seems like it should print the URL to navigate to manually, which would be great. But maybe that code path isn't being triggered.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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