'when press ctrl + f5 open launch.json and my code is not run what about this problem?

enter image description here

this photo when I was run my dart code last night ctrl + f5 worked correctly and today happen this problem!



Solution 1:[1]

As mentioned in the notification, you should set the program value in your launch.json configuration:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Dart & Flutter",
      "request": "launch",
      "type": "dart",
      "program": "main.dart"
    }
  ]
}

You should set the program value to the entry file of your Dart program - in your case, it is main.dart.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mkobuolys