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

Is this the expected behaviour? Meteor + VS Code + Chrome Debugger #112

Closed
lesliedoghouse opened this issue Jul 4, 2018 · 1 comment
Closed
Assignees

Comments

@lesliedoghouse
Copy link

I got the debugger running with meteor app. But I feel the behaviour a bit odd.

Behaviours:

  1. I have to close all Chrome instances running on my desktop.
  2. When at breakpoint, make changes and save, meteor will rebuild and restart (takes some time)
  3. Once save and meteor restarted, debugger no longer attached. I have to Stop and Start debugger again.

Is the above expected behaviour? If yes, then this integrated debugger is not very help and quite hassle to use.

Please correct me if I'm wrong. Thank you.

@lesliedoghouse lesliedoghouse changed the title Is this the expected behaviour? Is this the expected behaviour? Meteor + VS Code + Chrome Debugger Jul 4, 2018
@mrslwiseman
Copy link

mrslwiseman commented Jul 20, 2018

I've had exact same problem all week and I've been trying hard to get it going. I finally succeeded with server side debugging, havn't quite worked out server/client at same time, but Im happy.
Try this

  1. launch.json:
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "attach",
            "name": "server",
            "restart": true,
            "port": 9229,
        },
    ],
}
  1. run meteor in its own terminal
    meteor run --inspect

  2. Start up vscode debugger.
    Take note of debugger attached output in meteors terminal

  3. Open up browser localhost:3000 and go for it!

For client side as well:
5. Chrome devtools > Sources: Add your work directory, then add client breakpoints there.

Has worked flawlessly for me so far.

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants