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 can I configure my application to get proper stacktrace. currently I am getting bundle info and the method name. What I want is filename and method name . app:///index.bundle?platform=ios&dev=true&minify=false in init$ at line ...... #627

Closed
arughani opened this issue Jul 25, 2019 · 5 comments

Comments

@arughani
Copy link

arughani commented Jul 25, 2019

No description provided.

@arughani arughani changed the title how can I configure my application to get proper stacktrace. currently I am getting bundle info and the method name. What I want is filename and method name how can I configure my application to get proper stacktrace. currently I am getting bundle info and the method name. What I want is filename and method name . app:///index.bundle?platform=ios&dev=true&minify=false in init$ at line ...... Jul 25, 2019
@ramonscampos
Copy link

Same here.
I ran the link..
Generate the bundle with this code:
react-native bundle --platform ios --entry-file ./App.js --bundle-output ./bundles/index.bundle --sourcemap-output ./bundles/index.bundle.map --assets-dest ./bundles/ --dev true

Uploaded with this:
./node_modules/.bin/sentry-cli --auth-token {auth_token} releases -o rcampos -p sentryteste files 2.0 upload-sourcemaps --dist distname--rewrite --validate /Users/ramoncampos/Desktop/sentry/sentryteste/bundles/index.bundle /Users/ramoncampos/Desktop/sentry/sentryteste/bundles/index.bundle.map --url-prefix="~"

Put the release and dist in config like this:

Sentry.config(dsn).install();
Sentry.setRelease('2.0');
Sentry.setDist('distname');

and besides the reference file is wrong (ReferenceErrorfunctionTest(Users/ramoncampos/Desktop/sentry/sentryteste/node_modules/react-native-sentry/lib/NativeClient)) I can only see the bundle info and method name too.

I want to see the javascript code with the error.

@arughani
Copy link
Author

Can sentry work on debug mode?

@ramonscampos
Copy link

I think so, but here it doesn't work (nothing does).
I already tried with --dev false and stays the same ;/

@arughani
Copy link
Author

same here..nothing works. I am not sure where am I going wrong with it. I am using typescript in my application. Is it because of that?

@HazAT
Copy link
Member

HazAT commented Jul 31, 2019

Please use our new beta sdk it works there.
More info: #612

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

3 participants