public icon indicating copy to clipboard operation
public copied to clipboard

Feature request: Focused logging

Open vjpr opened this issue 3 years ago • 4 comments

Issue description or question

When I use //? to log a line, the inline printing in the IDE is usually too long to read properly.

Often when I use this, I want to see what this prints in full in the console.

But the console is usually full of an error or the From console logs.

I would love something like //# that prints the expression at the top of the console.

Alternatives:

  • The value explorer - too slow and I just want to see JSON.stringify of everything often. I prefer to drill down in the editor by changing what I am logging instead.
  • Wallaby app - have to open separate window and has same problem.
  • Copy Value and paste into a scratch tab window. I bound this to ctrl + cmd + c which feels pretty awesome/natural (also ctrl+opt+click - I just wish it worked without have to select the text).

Info

IntelliJ IDEA

vjpr avatar Sep 09 '21 11:09 vjpr

Hi @vjpr,

We're working on Output Inspector feature for JetBrains IDEs which we think covers your feature request. Here is a quick teaser:

jb_output_inspector

As a temporary workaround you could use Show Line Tests intention action to quickly see the full value:

jb_show_line_tests

NikGovorov avatar Sep 10 '21 06:09 NikGovorov

Cool!

Some feedback from my desired workflow:

I usually work with three side-by-side editors in my IDE.

If the tab can dock in one of the editor tab groups that would be great. I would never want it to create a new editor tab group. If it doesn't already exist I would like it to open in the "opposite" tab group. It would want it to be able to be pinned too.

My workflow at the moment is to Copy Value and paste to an empty scratch tab, so this looks like a much nicer solution to that.

Having it as an editor tab is great because of the vertical space.

But I would also like it to be a tab in Wallaby tool window, next to Failing tests.

The ideal for me would be to allow the Wallaby tool window tabs to be movable...like they are in the debugger, so that I could have two Wallaby tool window tabs side-by-side in the tool window.

I can see myself having Failing tests on one side and Output inspector on the other, open at all times.

vjpr avatar Sep 10 '21 11:09 vjpr

Something like this:

Screen Shot 2021-09-10 at 1 37 44 pm

On a MBP 16 retina, there is so much deadspace in the tool window.

I would prefer this over an entire editor being taken over by the inspector.

vjpr avatar Sep 10 '21 11:09 vjpr

Here is the Node.js debugger with dockable tool window tabs. For me this is ideal:

https://user-images.githubusercontent.com/281413/132848224-75493e03-7a63-4823-80c1-251002285906.mov

vjpr avatar Sep 10 '21 11:09 vjpr