Skip to content

fix: debugging in VSCode is not working on iOS Simulator#4216

Merged
rosen-vladimirov merged 1 commit intoreleasefrom
vladimirov/fix-vscode-debug-2
Dec 11, 2018
Merged

fix: debugging in VSCode is not working on iOS Simulator#4216
rosen-vladimirov merged 1 commit intoreleasefrom
vladimirov/fix-vscode-debug-2

Conversation

@rosen-vladimirov
Copy link
Contributor

When you've stopped on breakpoint in VSCode and apply a change in the code, CLI tries to restart application. However, at this point the command for killing the application may not kill it immediately and it needs 30 seconds. The problem is that the runtime loops indefinitely while on breakpoint. After some seconds (looks like 30), the OS kills the application. In order to resolve the issue, disconnect all sockets before stopping the application, so the runtime can successfully break the indefinite loop and after that application can be safely killed.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

When you've stopped on breakpoint in VSCode and apply a change in the code, CLI tries to restart application. However, at this point the command for killing the application may not kill it immediately and it needs 30 seconds. The problem is that the runtime loops indefinitely while on breakpoint. After some seconds (looks like 30), the OS kills the application. In order to resolve the issue, disconnect all sockets before stopping the application, so the runtime can successfully break the indefinite loop and after that application can be safely killed.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-vscode-debug-2 branch from fd9f3bc to c22902f Compare December 11, 2018 09:57
@rosen-vladimirov rosen-vladimirov merged commit ac077f0 into release Dec 11, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-vscode-debug-2 branch December 11, 2018 10:37
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.

2 participants