question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silence the startup command printout in Integrated Terminal

See original GitHub issue

When I run a Dart app in the Integrated Terminal, it prints out a very verbose startup command, e.g.:

cd /Users/mikem/myproject; /usr/local/Cellar/dart/2.8.2/libexec/bin/dart --enable-vm-service=0 --pause_isolates_on_start=true --write-service-info=file:///var/folders/2n/vn59_vz152vg107rrs53ympc0000gn/T/dart-vm-service-ee74.json -DSILENT_OBSERVATORY=true --enable-asserts bin/main.dart

This happens for Javascript too:

mikem@MBP node_sample % /usr/local/bin/node --inspect-brk=6018 scripts/simple.js Debugger listening on ws://127.0.0.1:6018/453abe68-1da3-4862-8ba4-71d8e3dfd8d6 For help, see: https://nodejs.org/en/docs/inspector Debugger attached.

These printouts pollute the scrollback and aren’t very useful imho. Could we get an option to silence this output, so the first thing I see in the Integrated Terminal is one of the print statements actually in my code?

Note that this doesn’t happen when using the Debug Console. There, I only see this printout (which also would be nice to silence, but at least it’s less verbose):

Connecting to VM Service at ws://127.0.0.1:58210/4yciVJ1NsWE=/w

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
weinandcommented, Jun 25, 2020

Sorry, but you called it issue:

When I run dart bin/main.dart, my app runs without echoing any command. So this seems to be a VSCode issue.

I tried to explain that this is not a VS Code issue because VS Code is not “printing” out anything.

VS Code is just “typing” a long command that starts with “cd /Users/…; bin/main.dart” into the Integrated Terminal and the shell in that terminal echos the command in the same way it is echoing when you type manually.

I will open this as a feature request.

0reactions
testforstephencommented, Jan 28, 2021

Currently, if the start command is long, it is wrapped into multiple lines by the terminal. Users cannot quickly find the real starting point of the program output. This is the main pain point.

If the integrate terminal allows disabling the line wrapping, that will mitigate this issue too.

I found there is an existing feature request to support disabling line wrapping in integrated terminal. https://github.com/microsoft/vscode/issues/74501

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I disable/mute Terminal printing function for a ...
This is done by running the chmod command.. as in chmod +x ./test.sh . From that point on, you can run the script...
Read more >
Integrated Terminal in Visual Studio Code
Alt and click on a tab, the + button, or the single tab on the terminal panel. Triggering the Ctrl+Shift+5 command. Tip: The...
Read more >
How to hide terminal output when executing a command?
try adding --help as a command switch and look for "quiet" this should suppress the output , or just launch from GUI. and...
Read more >
Getting rid of console output when freezing Python ...
I am running PyInstaller 2.0, which means I simply type python pyinstaller.py MYCODE.pyw into cmd in the correct directory and it does the ......
Read more >
How to run a command automatically in VS Code when you ...
It would be great to launch my bundler or server when I open a project, and spare me from doing it! VS Code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found