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

Sourcemaps: option to Ignore certain folders #240

Open
itsdaiego opened this issue Mar 9, 2020 · 4 comments
Open

Sourcemaps: option to Ignore certain folders #240

itsdaiego opened this issue Mar 9, 2020 · 4 comments

Comments

@itsdaiego
Copy link

Hello!

First of all if this question is either already answered or on the docs I apologize in advance, if that's not the case let's go :)

I'm currently having some sourcemaps errors in SOME applications (I created some docker and regular apps before that worked just fine):
image

The breakpoint red circle fills up but doesn't work when using the API's endpoint.

I was unable to fix this issue using the sourceMapPathOverrides (or I simply don't know how to use it effectively), so I was wondering if there's way to ignore/skip a folder (in this case node_modules) since I'm not gonna be debugging those files anyway.

indium config:

{
  "configurations": [
    {
      "name": "superbowleto",
      "type": "node",
      "remoteRoot": "/superbowleto",
      "sourceMapPathOverrides": {
      }
    }
  ]
}

Thanks!

@itsdaiego itsdaiego changed the title Sourcemaps: Ignore certain folders Sourcemaps: option to Ignore certain folders Mar 9, 2020
@NicolasPetton
Copy link
Owner

@itsdaiego I'd like to find out why the sourcemap fails, could you give me steps to reproduce the issue?

@itsdaiego
Copy link
Author

itsdaiego commented Mar 10, 2020

Sure here we go:

1 - Clone this repo https://github.com/pagarme/superbowleto
2 - Change this line to node --inspect=0.0.0.0 bin/src/server
3 - inside superbowleto-web add this:

    ports:
      - "3000:3000"
      - "9229:9229"

4 - Use the same .indium.json as described above
5 - run indium-connect on any file (I usedsrc/bin/server.js)
6 - run docker-compose up superbowleto-web (breakpoint should be filled up)

Thanks! :D

@itsdaiego
Copy link
Author

Hello, I don't know if it helps but something that I didn't notice before is that these errors also appear on the devtool's console:

image

So it probably doesn't have anything to do with Indium itself, although I still don't know how to debug or solve the issue 🤔

@itsdaiego
Copy link
Author

itsdaiego commented Apr 6, 2020

Hello @NicolasPetton is there anything I can do to help you further?

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

No branches or pull requests

2 participants