denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.5k stars 146 forks source link

Failed to start inspector server at "127.0.0.1:9229" #1118

Open ooker777 opened 6 months ago

ooker777 commented 6 months ago

I was debugging normally, then this bug happened. Here is the error when debugging a simple console.log('a'):

error: Failed to start inspector server at "127.0.0.1:9229"

Caused by:
    Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)

Stack backtrace:
   0: onig_get_string_end_by_callout_args
   1: onig_builtin_fail
   2: onig_get_capture_tree
   3: napi_fatal_error
   4: napi_fatal_error
   5: onig_get_regex_by_callout_args
   6: napi_release_threadsafe_function
   7: napi_delete_reference
   8: napi_fatal_error
   9: onig_get_regex_by_callout_args
  10: napi_release_threadsafe_function
  11: onig_unicode_define_user_property
  12: BaseThreadInitThunk
  13: RtlUserThreadStart
Process exited with code 1

launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "request": "launch",
      "name": "Launch Program",
      "type": "node",
      "program": "${file}",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "C:\\Users\\ganuo\\AppData\\Local\\Microsoft\\WinGet\\Links\\deno.EXE",
      "runtimeArgs": [
        "run",
        "--inspect-brk",
        "--allow-all",
        "--unstable-kv"
      ],
      "attachSimplePort": 9229,
      "env": {
        "RUST_BACKTRACE": "full"
      }
    }
  ]
}

VS Code: 1.89.1, Deno: 1.43.5, extension: 3.37.1