Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVisual Studio Code express app #641
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 |



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 startboth lines show as expected.