Skip to content

Instantly share code, notes, and snippets.

@trevorah
Last active September 1, 2015 11:04
Show Gist options
  • Save trevorah/bfeb4ad69e4633dc76c5 to your computer and use it in GitHub Desktop.
Save trevorah/bfeb4ad69e4633dc76c5 to your computer and use it in GitHub Desktop.
Enable logging for node-webkit / nw.js in windows
  1. Install Sawbuck. This tool will capture logs for all chrome-based applications.
  2. Add "Content Shell" to your list of Providers in Sawbuck by adding these registry entries to your machine (NOTE the optional Wow6432Node key for x64 machines):
  3. Find: HKLM\SOFTWARE\[Wow6432Node\]Google\Sawbuck\Providers
  4. Add a subkey with the name {6A3E50A4-7E15-4099-8413-EC94D8C2A4B6}
  5. Add these values: * Key: (Default), Type: REG_SZ, Value: Content Shell * Key: default_flags, Type: REG_DWORD, Value: 00000001 * Key: default_level, Type: REG_DWORD, Value 00000004

Alternatively, use this .reg file to do the above for you (in x86) (courtesy of @mydigitalself). 3. Start Sawbuck and go to Log -> Configure Providers and change Content Shell's Log Level to Verbose. 4. Start capturing logs by going to Log -> Capture. 5. Start up your Gitter app and watch those logs!

@mydigitalself
Copy link

Added awesome for your pleasure:

  1. The link to Sawbuck
  2. A .reg file to do this for you

@moloko
Copy link

moloko commented Aug 28, 2015

Just to point out that the .reg file is set up for x86 Windows. This had me slightly foxed for a while.

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