Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug services? #7

Open
bartonhammond opened this issue Jan 7, 2019 · 1 comment
Open

How to debug services? #7

bartonhammond opened this issue Jan 7, 2019 · 1 comment

Comments

@bartonhammond
Copy link

When I'm in Flutter, in login_widget.dart I try to Step into the following register function but I'm not able to. First I set a Breakpoint on line 61 and when it breaks, I use the Debugger button Step Into and it never gets into the register function.

61:  Store.instance.userController.register(
            usernameController.text, passwordController.text);
@jairoFernandez
Copy link

Hi, I don't know is very late, but I debug with VSCode, using a dart and flutter extension, and use env var burned in the config of vscode

.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Dart",
      "program": "bin/main.dart",
      "request": "launch",
      "type": "dart",
      "env": {
        "SMS_SERVER": "http://localhost:4000",
        "SMS_USER": "FakeUser",
        "SMS_PASSWORD": "FakePassword",
        "DATABASE_CONNECTION_URL": "postgres://bk_service_user:password@localhost:5432/bk_service"
      }
    }

I put the debug points, and works for me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants