Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Dart DevTools?

Tags:

I am trying out Flutter with VS Code. Somehow, I ended up using (installed it by accident) Dart DevTools.

Whenever I run apps or start debugging apps, Dart DevTools pops up on a browser.

How can I remove/disable it?

enter image description here

like image 285
Jin Lee Avatar asked Jan 15 '20 08:01

Jin Lee


People also ask

What is Dart DevTools?

Dart DevTools is a suite of debugging and performance tools for Dart and Flutter. These tools are distributed as part of the dart tool and interact with tools such as IDEs, dart run , and webdev . The following table shows which tools you can use with common Dart app types. Flutter mobile or desktop. Flutter web.

How do you activate Dart DevTools?

Once an app is running, you can start DevTools using one of the following in Android Studio: ✔Select the Open DevTools toolbar action in the Run view. ✔Select the Open DevTools action from the More Actions menu in the Flutter Inspector view.

How do you open the Dart DevTools in Vscode?

Launch DevTools Clicking the Open button uses pub global activate to activate the DevTools package for you. Next, DevTools launches in your browser and automatically connects to your debug session. While DevTools is active, you'll see them in the status bar of VS Code.

How do I connect my Dart app to DevTools?

An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:9200/Swm0bjIe0ks=/ Paste the URL you got from running your app (http://127.0.0.1:9200/Swm0bjIe0ks=/) into the connect dialog to connect your app to DevTools. Hope this helps.


Video Answer


2 Answers

To disable DevTools:

Open VS Code settings and search for Dart: Open Dev Tools and set it to never. (Removing "dart.openDevTools": "flutter" from settings.json should work too)

To uninstall/remove DevTools, you can run:

  • pub global deactivate devtools (if you have pub on your path)
  • or flutter pub global deactivate devtools (if you have flutter on your path)
like image 106
janstol Avatar answered Oct 23 '22 11:10

janstol


Go to Settings and change the Open Dev Tools Settings to never. If asked after running the app, select Don't Ask again.

enter image description here

like image 21
live-love Avatar answered Oct 23 '22 11:10

live-love