VS Code localhost refused to connect

96 views
Skip to first unread message

Jair-Rohm Parker Wells

unread,
Feb 25, 2021, 12:12:08 PM2/25/21
to Flutter Development (flutter-dev)
Hi, 

When i create a new project, i can start a debugging session in Chrome by pressing F5 in VS Code. When i terminate debugging and then later try to start a new debugging session using F5 i get a message in the browser that says "localhost refused to connect". I've tried changing port number in launch.json as well as adding configurations with different port numbers and nothing works. I have no problem running my project with the command "flutter run -d chrome" in the terminal. Unfortunately, "hot restart" doesn't work in that mode like it does when i run the debugger from F5. What am i doing wrong? 

Thanks, 

Jair-Rohm
Reply all
Reply to author
Forward
0 new messages