Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants