every time I want to debug my flutter project the debugger does not stop on the breakpoints like there are no breakpoints even so the uncached exception and all exceptions bottoms in the debugger are working
my
launch.json
file
{
"version": "0.2.0",
"configurations": [{
"name": "Flutter",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--debug",
"dev"
],
}]
}
I tried the default launch.json configurations but it's didn't work
{
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart"
}
]
}
Just import developer package in the intended file import 'dart: developer' as dev;
Then use it as a breakpoint; as we use in javascript
dev.debugger(); // wherever you want to stop
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