Does any way to debug server side code in VSCode? #2170
-
Hi! I'm facing with missing possibilities to debug endpoint (or anything else server side code). best regards! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should be able to debug your server code in VS Code. Open up the main.dart file (from your project_server/bin folder) in VS Code and then start a debug session as you normally would. Then open another terminal, navigate to your flutter app folder, and start it ...
If you've set breakpoints in your endpoints and then called those endpoints from your UI, the code should break... Just be mindful that you'll have to work around timeout exceptions. The host development environment (Ubuntu, in your case) should not matter. |
Beta Was this translation helpful? Give feedback.
You should be able to debug your server code in VS Code. Open up the main.dart file (from your project_server/bin folder) in VS Code and then start a debug session as you normally would. Then open another terminal, navigate to your flutter app folder, and start it ...
flutter run -d chrome
If you've set breakpoints in your endpoints and then called those endpoints from your UI, the code should break...
Just be mindful that you'll have to work around timeout exceptions.
The host development environment (Ubuntu, in your case) should not matter.