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

VS Code debugging #445

Closed
MatejBransky opened this issue Mar 24, 2018 · 2 comments
Closed

VS Code debugging #445

MatejBransky opened this issue Mar 24, 2018 · 2 comments
Labels

Comments

@MatejBransky
Copy link

This issue is a:

  • Question / support request

First I want to thank you for your library. I don't know about any better ready-to-use solution for building React components libraries.

But I have one question: I've noticed that you use VS Code so I thought that you could help me with launch.json so I can debug an example (VS Code Chrome debugging) and even the tests. The basic configuration doesn't work.

Maybe it would be helpful if you could provide copy/paste solution in readme like they do in cra.

Thanks for any help!

insin added a commit that referenced this issue Mar 27, 2018
@insin
Copy link
Owner

insin commented Mar 27, 2018

I've added something to the FAQ:

Searching around, there doesn't seem to be a way to debug tests which are being run in PhantomJS via Karma in VS Code yet:

@insin insin added the docs label Mar 27, 2018
@insin insin closed this as completed in b6d5210 Mar 27, 2018
@insin
Copy link
Owner

insin commented Mar 27, 2018

I couldn't get any of the configs which use Karma customLaunchers config with a --remote-debugging-port Chrome flag to work.

This simpler one which launches a headless browser against the Karma debug.html page works for me, though you have to click reload in the debug toolbar after setting breakpoints and making code changes:

https://stackoverflow.com/a/49176250/6760

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

No branches or pull requests

2 participants