Skip to content

Does any way to debug server side code in VSCode? #2170

Answered by bfemmer
avnikolaev asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avnikolaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants