Jaky
Jaky

Reputation: 181

Unverified breakpoint in VSCode in Flutter

My debug mode does not work as I see the unverified breakpoint notice in VSCode in debug mode. I already checked the Launch json file and it is fine, but something else is wrong which I do not see what it is. Maybe something related to paths, etc. I tried to make a new project in VSCode using the command and the new default Flutter project is OK. So it seems like, if I can make a fresh project from my current project then my problem could be solved. But how? I tried to move my files from my current project to the newly made Default Flutter project but I do not think this is the way. Because I guess some of the files in my project are the source of issues... I already deleted .vs file but no help. Do you have any good idea how to fix this issue?

Upvotes: 5

Views: 2821

Answers (3)

Vignesh KM
Vignesh KM

Reputation: 2076

If you are adding breakpoint on a package, make sure that package is linked to the flutter project. Sometime we might have linked the package from git, and expecting the brake-point on local to work.

Upvotes: 0

projo
projo

Reputation: 402

On my step :

  1. Close project, and make sure the folder/directory not accessed by another program
  2. Rename directory
  3. If you're working on git project, clone on the new folder
  4. And happily run and debug your code again

Upvotes: -2

LMech
LMech

Reputation: 168

First try cleaning the project files using flutter clean then flutter pub get, try running the app without debugging and if you are down for making a new one just move the lib and assets folders and copy the content of pubspec.yaml file.

Upvotes: -1

Related Questions