All Projects → MRokas → Smartdebug.js

MRokas / Smartdebug.js

Next-generation debugging for javascript!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Smartdebug.js

Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-87.26%)
Mutual labels:  debugger, test-framework, debug
Lua Debug
Lua Debug Adapter for Visual Studio Code
Stars: ✭ 254 (+61.78%)
Mutual labels:  debugger, debug
xr
Lightweight debug server utility for PHP.
Stars: ✭ 116 (-26.11%)
Mutual labels:  debugger, debug
Remotedebug
Library for Arduino to debug projects over WiFi, with web app or telnet, with print commands like Serial Monitor
Stars: ✭ 467 (+197.45%)
Mutual labels:  debugger, debug
PushMeBaby
iOS Push Notification Debug App. You can use this app during iOS Push Notification (development or production) to push notifications on your device from your Mac.
Stars: ✭ 47 (-70.06%)
Mutual labels:  debugger, debug
simple-debug.css
Debug your layouts with one line of CSS
Stars: ✭ 32 (-79.62%)
Mutual labels:  debugger, debug
Go Debug
🐛 A go debugger for atom using delve.
Stars: ✭ 390 (+148.41%)
Mutual labels:  debugger, debug
SmartDump
SmartDump - an exception and memory dump capture utility
Stars: ✭ 17 (-89.17%)
Mutual labels:  debugger, debug
Dap Mode
Emacs ❤️ Debug Adapter Protocol
Stars: ✭ 809 (+415.29%)
Mutual labels:  debugger, debug
Ansible Role Php Xdebug
Ansible Role - PHP Xdebug
Stars: ✭ 34 (-78.34%)
Mutual labels:  debugger, debug
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (-64.33%)
Mutual labels:  debugger, debug
error
Makes handling and debugging PHP errors suck less
Stars: ✭ 17 (-89.17%)
Mutual labels:  debugger, debug
React Native Vdebug
React-Native 调试工具,支持Console终端、Network导出cURL,可视化Response,Retry cURL。
Stars: ✭ 124 (-21.02%)
Mutual labels:  debugger, debug
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-87.9%)
Mutual labels:  debugger, debug
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-88.54%)
Mutual labels:  debugger, debug
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+2300.64%)
Mutual labels:  debugger, debug
golang-debugger-book
From a debugger's view, Let's explore the computer world! How does compiler, linker and debugger coordinate with each other around the program written in specific programming language? How does a debugger work? If we develop a debugger for go programming language, we must master go type system, runtime... and some Operating System internals. OK,…
Stars: ✭ 49 (-68.79%)
Mutual labels:  debugger, debug
PBD
🖨️🐞 Printf Based Debugger, a user-friendly C debugger
Stars: ✭ 52 (-66.88%)
Mutual labels:  debugger, debug
Spector.js
Explore and Troubleshoot your WebGL scenes with ease.
Stars: ✭ 599 (+281.53%)
Mutual labels:  debugger, debug
Strongod
StrongOD(anti anti-debug plugin) driver source code.
Stars: ✭ 76 (-51.59%)
Mutual labels:  debugger, debug

SmartDebug.JS

Next-generation debugging for javascript!

Inspired by

Sadly, I do not know original author of image - but I would be more than glad to credit him for this awesome idea.

Inspiration

Getting started

First clone git:

git clone http://github.com/MRokas/SmartDebug.JS.git

And then include it by using your preferred method:

<script src="js/smartdebug.js"></script>

import SmartDebug from "js/smartdebug";

SmartDebug = require("js/smartdebug");

Usage

Basic usage using default settings:

SmartDebug(function() { console.log(a); });
// redirects to http://stackoverflow.com/search?q=[js] + a is not defined

Basic usage with redirecting to stackoverflow:

SmartDebug({
    run: function() { console.log(a); }
});
// redirects to http://stackoverflow.com/search?q=[js] + a is not defined

If you prefer to use callback function, provide function or use true to use default function

SmartDebug({
    run: function() { console.log(a); },
    callback: true
});
// Console output: http://stackoverflow.com/search?q=[js] + a is not defined

Using your own callback functions is just as simple:

var errors = [];

SmartDebug({
    run: function() { console.log(a); },
    callback: function (arg1) { errors.push(arg1); }
});

console.log(errors);
// Console output: Array [ "http://stackoverflow.com/search?q=[js] + a is not defined" ]

If you prefer to always use same callback function, just set default one:

var errors = [];
SmartDebug.callback = function (arg1) { errors.push(arg1); };
SmartDebug({
    run: function() { console.log(a); }
});

console.log(errors);
// Console output: Array [ "http://stackoverflow.com/search?q=[js] + a is not defined" ]

And if stackoverflow isn't your prefered site to search for errors, provide it:

SmartDebug({
    run: function() { console.log(a); },
    link: "https://www.google.com/search?q=javascript "
});
// redirects to https://www.google.com/search?q=javascript a is not defined

Or you can provide default one:

var errors = [];

SmartDebug.link = "https://www.google.com/search?q=javascript ";
SmartDebug({
    run: function() { console.log(a); },
    callback: function (arg1) { errors.push(arg1); }
});

console.log(errors);
// Console output: Array [ "https://www.google.com/search?q=javascript a is not defined" ]

TODO

Nothing - post issue or send PR!

DISCLAIMER

This is just a satire, enjoy.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].