Strange Issue with Wireless Debugging on iPhone

I created a new Flutter project without making any modifications.
1. The issue is more severe when debugging using the Flutter extension in VS Code. In this case, the app does not reach the main screen and remains stuck on a white screen.
2. However, if I run flutter run --debug from the terminal, the app successfully reaches the main screen on my iPhone. In this state, I can manually attach the debugger by opening a new terminal and running flutter attach, but this method is very inconvenient. Every time I modify the code, I have to enter r in the terminal to reload.

What could be causing this issue? Has anyone experienced a similar situation and found a solution?