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
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.
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.
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.
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 haveflutter
in your path .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With