Skip to content

Multiline string logging with variablesReference #17333

Closed

Description

@roblourens

Using OutputEvent with a variablesReference, multiline logs aren't supported anymore.

image

Especially a problem when I need to print a stack from an exception or console.trace()
image

Maybe not straightforward to fix since variables are always 1-line everywhere else?

Activity

  1. roblourens commented on Dec 16, 2016

    @roblourens
    MemberAuthor

    I think those \n are going into the console height calculation though -

    image

    image

  2. isidorn commented on Dec 29, 2016

    @isidorn

    I think we fixed this last minute prior to 1.8 release. Anywasy works for me now
    We might fix how we hande new line and output events so we should still keep this in mind as a good test case

    screen shot 2016-12-29 at 14 54 46

  3. roblourens commented on Dec 29, 2016

    @roblourens
    MemberAuthor

    In my original example I was using variableReference, but if you try that now, it won't be because I changed it to not use variableReference when logging only text. I still see this if I include an object like in my second comment:

    I think those \n are going into the console height calculation though -

    image

    image

  4. isidorn commented on Jan 4, 2017

    @isidorn

    Works for me.
    My steps:

    1. insiders, mac, node2 debug session stopped
    2. in repl: console.log('a\nb', {a : 1})

    screen shot 2017-01-04 at 21 23 42

    Please try with latest or give me your exact steps

  5. roblourens commented on Jan 4, 2017

    @roblourens
    MemberAuthor

    It does work now, maybe it was fixed by the fix for #17404. Thanks

  6. locked and limited conversation to collaborators on Nov 18, 2017
  7. added
    debug
    on May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions