debug
vscode-js-debug
Our great sponsors
debug | vscode-js-debug | |
---|---|---|
26 | 10 | |
11,004 | 1,590 | |
0.5% | 2.5% | |
3.6 | 9.0 | |
8 months ago | 3 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
debug
-
Conditional logging
Another way to solve this is to have the logs in place, but only enable them conditionally. If you enable all the logs are the time, you only get a lot of noise that won't help you. If you are using JavaScript, you can use the package debug to add logs that are active by the DEBUG environment variable.
-
Has anyone figured out how to enable the millisecond diff feature in the debug package?
I'm using the debug package: https://www.npmjs.com/package/debug, but some reason I don't see millisecond diffs, which would be really useful.
- Help I have a JavaScript Lib that blows away competition but nobody knows of it
-
What is the DEBUG 🐛 environment variable in Node.js, and how to use it?
Although it's used by Express, it's indeed more broadly, the way a popular NPM package called debug works, which is used internally in Express too. Under the hood, the debug package expects the DEBUG environment variable to determine what debug messages to print (could be on the console, or into a file, or into stdout to be collected by a log aggregator service).
-
Automating console logs for dev but removing for prod?
Finally, if they're logs you want to be able to inspect in production without printing them to the console by default, you can use debug.
-
After having used many loggers/debuggers...
It is a drop-in, TypeScript replacement to enhance the widely popular https://www.npmjs.com/package/debug (230k weekly downloads).
-
Create a Node.js command-line library with NRWL NX workspace
debug - npm - Required. A popular library to write debug logs.
-
Debugging Figma and other packaged Electron apps in Visual Studio Code
I strongly recommend using the debug package from NPM to organize your log messages
-
Is it bad practice to log within a shared library?
Use the [debug npm library](https://www.npmjs.com/package/debug) to disable your logging unless someone provides the right environment variable (e.g. DEBUG=* which enables all logging)
-
Debug build vs Prod build
A lot of tools rely on the NODE_ENV environment variable for that, React included. Another great package that’s pretty popular is https://www.npmjs.com/package/debug You can create namespaces and then filter the logs you are interested in.
vscode-js-debug
-
Has anybody gotten vscode-js-debug working with a browser like chrome?
Now I'm attempting to configure it with just vscode-js-debug, looking at the https://github.com/microsoft/vscode-js-debug/blob/main/OPTIONS.md and trying to configure it with no success.
-
Best tools/techniques for debugging JavaScript
Maybe this
-
Any breakpoint, anywhere, breaks debugging in VS2022 v17.5.2 ??
Chrome 111 breakpoints don't work (github, VS CODE specific)
-
Debugging Figma and other packaged Electron apps in Visual Studio Code
If you pay attention to the image above you'll notice there are some mumbled log messages there I've filed an issue regarding those on vscode-js-debug In the meantime, if you have too many messages you may want to stick with dev tools
- looking for help - Debug Typescript in vim
-
looking for help - debug typescript
For reference, for debugging Typescript vscode-js is the current debugger used in vscode.
-
Switching From VSCode to DOOM Emacs Recently. Here's My Experience
Debugging experience ain't all that great on Emacs when compared to VSCode. VSCode just simply wins here. Due to some technical complications, Emacs doesn't support VSCode js-debugger. It does support an older chrome debugger which might or might not work for most. I honestly didn't test it that much. Also, for a debugging workflow, I find it easier to use a mouse than a keyboard. I have been looking at how I can port the js-debugger to Emacs but I'm not sure if I have the necessary skills (BUT I'd still learn a lot). So for debugging I have been relying on VSCode.
-
Forks of vscode-node2-debug, node DAP options
vscode-node2-debug is now deprecated despite being the officially recommended dap adapter. The newer vscode-js-debug isn't dap compatible and doesn't look like it will be. I did see some hacks to make vscode-js-debug work, but I didn't try them myself. Some hacks and the compatibility issues are discussed here
-
Problem with using Chrome debugger on React in VSCode
It's a new JS debugger in VS Code, and they made it the default one in June last year.
-
Intellicode Slow 3 Seconds
Thanks for the update u/Amssstronggg; glad you found the culprit extension. Have you reported the problem already to the extension owners at Issues · microsoft/vscode-js-debug (github.com) ? I am sure they would love to take a look and see what's going on. I would also mention the slow extension activation problem there.
What are some alternatives?
node-inspector - Node.js debugger based on Blink Developer Tools
nvim-dap - Debug Adapter Protocol client implementation for Neovim
npm-fast-installer - npm-fast-installer - NPM install configuration in top of YAML for fast NPM install usage.
nvim-dap-vscode-js - nvim-dap adapter for vscode-js-debug
bugger - Bugs bugging you? Bug back.
asciidoctor-vscode - AsciiDoc support for Visual Studio Code using Asciidoctor
ndb - ndb is an improved debugging experience for Node.js, enabled by Chrome DevTools
vscode-cointy - Welcome to Cointy, a vs code extension for checking cryptocurrency prices as you code.
longjohn - Long stack traces for node.js inspired by https://github.com/tlrobinson/long-stack-traces
edamagit - Magit for VSCode
swagger-stats - API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
vscode-sftp - Super fast sftp/ftp extension for VS Code