-
Notifications
You must be signed in to change notification settings - Fork 944
Visual Studio Code express app #641
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Above that line, could you please add |
It outputs:
|
Thanks for the report and the detailed information. It's refreshing to be able to reproduce something so quickly 😄 You're absolutely right. For some bizarre reason, VSCode patches See microsoft/vscode#19750 (comment) - it doesn't appear to be something they want to fix concretely. Add this to your {
"outputCapture": "std"
} (by default, it's Thanks again for reporting. I would happily accept a PR for adding this piece of information into the README :) |
Blocked by #649 - please let that issue be resolved first before tackling this issue! |
Related to microsoft/vscode#41600 (comment). The solution of adding Interestingly, they mention "Getting output through the debug socket" as an alternative (seemingly) to getting output from stdout? How does one log a debug statement "through the debug socket"? |
Or you can keep process.browser = true
global.window = { process: { type: 'renderer' } } Would love a toggle switch like @michielbdejong the debug socket is the In case anyone is using TypeScript, here's the type declarations: declare global {
namespace NodeJS {
interface Process {
browser: boolean
}
interface Global {
window: object
}
}
} Just found out that there is an inspector module built in to node which allows you to transfer information to the debug console. So I guess it could actually be easily implemented by adding |
+1 For this issues, happy to see this discussion happening : ) @DimitarNestorov Not sure how that solution for coloring worked for you. With the following solution, I receive debug info (w/out color): launch.json
With this solution, I don't receive anything launch.json
test.js
|
@GioLogist Where is your require/import? It must be after the two lines. I'll setup an example project if you want? |
@DimitarNestorov just tried re-ordering now w/no luck |
@GioLogist Check this example out: https://github.com/dimitarnestorov/vscode-debug-with-colors |
try this: in lanuch.json |
could we get this added into the docs? 3 years later I only stumbled on this after searching for ages for a solution to this. |
I am trying to run an express app through Visual Studio Code. I have a launch.json file with DEBUG defined like so:
Here is a trimmed down version of my app.js file where you can see the bolded debug line that doesn't output to the debug console (Test 2). Test 1 before it outputs as expected. If I run this from the command line passing
DEBUG=* npm start
both lines show as expected.The text was updated successfully, but these errors were encountered: