App/Flutter
Could not find a command named "bin\main.dart".
selfstarter
2020. 8. 21. 23:41
Could not find a command named "bin\main.dart".
flutter source를 debug 하려고 하니까 아래 에러가 발생
Could not find a command named "bin\main.dart".
vscode면 ctrl+p해서 launch.json 찾아서 program의 "bin/main.dart",을 현재 프로젝트 경로의 main.dart 로 변경해준다.
예를 들어 현재 있는 프로젝트의 위치가 flutter/examples/hello_world/lib 이라면 최상위 프로젝트는 flutter이다.
최상위 프로젝트 경로를 빼고 examples/hello_world/lib/main.dart 이렇게 작성해준다.
"version": "0.2.0",
"configurations": [
{
"name": "Dart",
"program": "examples/hello_world/lib/main.dart",
"request": "launch",
"type": "dart"
}
]