Skip to content

Debugger doesn't hit a breakpoint in immediately executed code #19

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

Closed
ivanbuhov opened this issue Feb 26, 2016 · 1 comment
Closed

Debugger doesn't hit a breakpoint in immediately executed code #19

ivanbuhov opened this issue Feb 26, 2016 · 1 comment
Milestone

Comments

@ivanbuhov
Copy link
Contributor

If you have set a breakpoint in a code which is executed on module execution (e.g. in an immediately executing function or some "global code") the breakpoint setting message is likely to be sent after the code is executed, so the debugger doesn't break the first time. If the code is executed again after a certain amount of time the debugger breaks. Inserting a debugger; statement before the breakpoint will delay the execution of the code and the breakpoint setting message is likely to be already sent, so the debugger will break on the breakpoint.

Related to: https://github.com/NativeScript/Neudesic/issues/2

@ivanbuhov ivanbuhov added the bug label Feb 26, 2016
@ivanbuhov ivanbuhov added this to the 0.3.0 milestone Mar 18, 2016
@ivanbuhov
Copy link
Contributor Author

Fixed: #30

@ivanbuhov ivanbuhov removed the bug label Mar 22, 2016
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

1 participant