1

I'm trying to print('hi') inside Visual Studio Code's Debug Console using Dart/Flutter.

Whenever I perform a restart, it works just fine. As you can see in the debug console it prints: I/flutter: hi

Performing a restart takes up to one minute of loading time. This isn't very ideal.

Ideally I would prefer that print() displays on the console whenever I perform a hot reload (as this only a takes a few seconds).

Any help would be greatly appreciated!

enter image description here

1 Answer 1

1

You are running a flutter app. That's quite expensive even if your "app" is only a print. Depending on your machine, reloading or even restarting can take a while.

EDIT since the whole debugging setup required for flutter apps is run too.

If you want to run dart code only, consider creating a dart project without flutter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.