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.

Logpoint error when hit

See original GitHub issue

Hello,

I have encountered an error when trying to use logpoint. When the logpoint hit debug console print this message, instead of printing specified log message

Debugger failed to evaluate expression `print("""${_counter}""")`

Here is the output of flutter doctor:

[√] Flutter (Channel master, v0.5.2-pre.42, on Microsoft Windows [Version 10.0.17134.48], locale en-ID)
    • Flutter version 0.5.2-pre.42 at D:\Repos\flutter-dev\flutter
    • Framework revision 4cd5870ece (2 days ago), 2018-06-01 15:57:01 -0700
    • Engine revision 6cef519598
    • Dart version 2.0.0-dev.59.0.flutter-1a185867a9

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at D:\Android\android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = D:\Android\android-sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.5
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4548.30

[√] VS Code, 64-bit edition (version 1.23.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.13.0

[√] Connected devices (1 available)
    • G621 TL00 • 127.0.0.1:62001 • android-x86 • Android 4.4.2 (API 19)

• No issues found!

DartCode version is 2.13.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jun 6, 2018

This has now been fixed in Flutter’s master branch (it’ll roll into dev and beta in upcoming updates). Thanks for the report!

0reactions
DanTupcommented, Jun 6, 2018

Yeah; IO use it so much in TypeScript for debugging Dart Code now - so much faster than restarting 😃 (ofcourse, I often forget and start writing console.logs!).

The best bit is that it persists, so I can leave them in important places in the code without having to add conditions or remove when committing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Knowledge base articles - LogPoint Community
Hit the query that is being used by the dashboard in the search bar and check if it has ... If the browser...
Read more >
cannot reference $returnValue in logpoint #94094 - GitHub
When this one is hit $returnValue is defined. However logpoints referencing $returnValue fail and conditional breakpoints referencing ...
Read more >
DevTools: Support logpoints (breakpoints that do not break ...
Logpoints, just like breakpoints, refere to a single line of code. However, unlike breakpoints, they don't force the code to pause when it...
Read more >
Console.log() for the web with logpoints - DevTools Tips
Select Add logpoint to open the editor; In the editor, enter the JavaScript expression you'd like to log. Hit Enter to save and...
Read more >
Can I make the VS debugger print a log message when ...
Meaning that first I hit a logpoint on line 15 of method Foo.PerformCycle(), then I hit a logpoint on line 1 of Button.Repaint()....
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