Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

In case you are using --bundle/--hmr with --debug-brk, application should break in starter.js. However, an error is shown. There are several problems - first of app the projectName is calculated incorrectly for iOS, so the path to platforms/ios/<project name> is incorrect.
Also, as we are modifying the relativePath string multiple times, it contains the dir from nsconfig.json instead of app, but in platforms dir, where starter.js is located, there's only app dir (i.e. no src there). Refactor the code, so we'll check the location of the file correctly. Add unit tests for iOS as well.

In case you are using `--bundle`/`--hmr` with `--debug-brk`, application should break in `starter.js`. However, an error is shown. There are several problems - first of app the projectName is calculated incorrectly for iOS, so the path to `platforms/ios/<project name>` is incorrect.
Also, as we are modifying the `relativePath` string multiple times, it contains the dir from `nsconfig.json` instead of `app`, but in `platforms` dir, where `starter.js` is located, there's only `app` dir (i.e. no `src` there). Refactor the code, so we'll check the location of the file correctly. Add unit tests for iOS as well.
@cla-bot cla-bot bot added the cla: yes label Mar 26, 2019
@ghost ghost added new PR and removed cla: yes labels Mar 26, 2019
@DimitarTachev DimitarTachev merged commit ad63862 into master Mar 26, 2019
@DimitarTachev DimitarTachev deleted the vladimirov/fix-debug-brk branch March 26, 2019 12:02
@ghost ghost removed the new PR label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants