Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to activate Dart Devtools

Tags:

flutter

dart

enter image description hereOn opening dart devtools in VS its showing Dart devtools exited with code 255 . I even tried to activating it from terminal in VS by typing flutter pub global activate devtools but its showing could not find a command named “global” for “flutter pub” error shown on terminal error again shown after activating devtools

like image 739
Dhanshree Pajankar Avatar asked May 18 '20 08:05

Dhanshree Pajankar


People also ask

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 I enable DART DevTools in Vscode?

Launch DevToolsClicking 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 to DART DevTools?

Open DevTools and connect to the target appCopy the Dart DevTools debugger and profiler URL, and paste it into the address bar of a Chrome browser window. When you visit that URL in Chrome, the Dart DevTools UI appears, displaying information about the target app. Click Debugger to start debugging the app.


1 Answers

Instead of using flutter pub global activate devtools ,

Use this :
pub global activate devtools

It's the correct way to activate devtools (if you have pub in your path)

Info : You could use flutter pub global activate devtools ,if you have flutter in your path .

like image 104
Kabirou Agouda Avatar answered Oct 30 '22 12:10

Kabirou Agouda