firefox-devtools / firefox-devtools/vscode-firefox-debug

Console insert newline between each argument

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Description

I am using [vuejs-logger](https://github.com/justinkames/vuejs-logger) which add a prefix by calling `console.log` with [multiple arguments](https://github.com/justinkames/vuejs-logger/blob/aa6c92aec40fd22a56ac7b0812b8fad967280e87/src/vue-logger.ts#L88). This render the following in VSCode debug console:
```
warn | js:161330:26 |
This should stop
```

In the browser, this is on a single line. In a debug session with Chrome, it is also on a single line, allowing `debug.console.collapseIdenticalLines` to work nicely.

I don't know if it's a bug, or if it's on purpose, but I would much prefer having all arguments of one call in one line.

Contributor guide

Open the contributing guide

Research direction

Reproduce the linked vuejs-logger call that passes a prefix and multiple arguments, then inspect how the VS Code debug console renders that output in the Firefox adapter. Compare it with the single-line browser and Chrome debug-session behavior; done means arguments from one console call render on one line so identical-line collapsing works.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.