Skip to content

Instantly share code, notes, and snippets.

View bgausden's full-sized avatar

Barry Gausden bgausden

  • Lissome Hong Kong Limited
  • Hong Kong
  • X @bgausden
View GitHub Profile
@bgausden
bgausden / vscode_debugpkg_debug_console.txt
Created January 27, 2021 07:51
VS Code Debug Console & NPM Debug package
In your script code add the following line. This sends the debug ouput via the console (where the vscode debug console will capture it):
debug.log = console.info.bind(console)
In launch.json add the following to your launch config to set the DEBUG envvar:
"env": {"DEBUG": "*,-getClients",
"DEBUG_COLORS": "true"}
for context the entire file looks like this:
HOMEBREW_VERSION: 1.2.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8cba0352e0be94263e2ed96c98bf93d8f2fce8ef
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7feb01c2e04a19cc21913fd89ea1e6a79a5b34d4
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
@bgausden
bgausden / cask_reinstall_chmodbpf.txt
Created May 8, 2017 03:03
wireshark-chmodbpf reinstall fail "Username and password must be provided"
barryg@barrys-mbp ~> brew cask reinstall wireshark-chmodbpf
==> Caveats
You must reboot for the installation of wireshark-chmodbpf to take effect.
==> Satisfying dependencies
complete
==> Downloading https://www.wireshark.org/download/osx/all-versions/Wireshark%202.2.6%20Intel%2064.dmg
Already downloaded: /Users/barryg/Library/Caches/Homebrew/Cask/wireshark-chmodbpf--2.2.6.dmg
==> Verifying checksum for Cask wireshark-chmodbpf
==> Uninstalling Cask wireshark-chmodbpf