Version: 7.x.x
Debugging
#
Debugging OutputWe use the debug package and log under the serialport
namespace. Each package has it's own scope
serialport/stream
for all stream released loggingserialport/binding*
for all binding related loggingserialport/*
for everything
You can enable logging through environment variables. Check the debug docs for info.
#
linux, osx#
Windows command prompt notes#
CMDOn Windows the environment variable is set using the set
command.
Example:
#
PowerShell (VS Code default)PowerShell uses different syntax to set environment variables.
Example:
#
Core dumpsYou can enable core dumps on osx with;
You can "console.log" from c++ with;
#
ReplYou can make use of the serialport-repl
command with;
It will load a serialport object with debugging turned on.