My app works in the simulator in my Mac, but not when I publish it with “exp publish”, so I need to debug. I found a related issue suggesting I could run…
exp start --no-dev --minify
…to debug. Initially this does not seem to support remote debugging. Correct? Can I enable remote debugging so I can use console.log?
hi @arnoldbird, regarding your app not working when published, one of the main differences is that __DEV__ is true in development but false when published. If you rely on this variable being true, it could cause problems for you.
Thanks quinlanj. I tried the debugger-ui address, but in Chrome I am seeing…
No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:19001’ is therefore not allowed access. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
My app doesn’t work in any kind of simulator since running ‘exp publish’ this morning. I have spent the last several hours trying to restore the functionality that existed before I ran ‘exp publish’. I created a separate issue at Does 'exp publish' change an app? (e.g. break it) -- RESOLVED