Get Hypnotized While Logging
HypnoLog allows you to fast and easily visualize your application data/objects while debugging. From any environment, in any language. Forget about those black text-based console debug-printing back from the 70's.
See HypnoLog main repo.
What it looks like, visualizing your data in the browser:
Logging using HypnoLog means sending your data as JSON HTTP request to HypnoLog server. This library wraps all of those into simple easy to use functions.
The easiest way to get HypnoLog-CSharp is via NuGet:
Install-Package HypnoLog
Or use Nuget Package Manager UI (Visual Studio).
If you haven't use HypnoLog before, setup HypnoLog server on your machine:
npm install -g hypnolog-server
Note: you will need Node.js installed on your machine first.
- Start HypnoLog Server:
hypnolog-server
- View output: open
http://127.0.0.1:7000/client.html
in your browser. - Add
using
for HypnoLog in your code:using HL = HypnoLog.HypnoLog;
- Log:
// Log a string HL.Log("Hello HypnoLog from C#!"); // log array of numbers as a graph (plot) HL.Log(new[] { 1, 2, 3 }, "plot");
For more examples, see Basic Example and Advanced Example code files.
Read how to view the log and more about HypnoLog in HypnoLog main repo page.
See Troubleshooting page.