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

debugger is not being hit on OSX #106

Closed
Qix- opened this issue May 19, 2016 · 11 comments
Closed

debugger is not being hit on OSX #106

Qix- opened this issue May 19, 2016 · 11 comments

Comments

@Qix-
Copy link

Qix- commented May 19, 2016

Currently can't use IronNode due to breakpoints being cleared upon reload on OS X (cmd-R).

breakpointscleared

Is this a known bug? Is there a workaround?

Also, why in the world does it not honor debugger; statements?

@s-a
Copy link
Owner

s-a commented May 19, 2016

You have the filesystem version in view. You cannot set breakpoints there. while a Debugger statement should always work. But be shure you are viewing the in memory version of you JavaScript by double check the code is surounded by the node module wrapper code to set breakpoints.
If the Debugger does not trigger : Is it possible the code will never be reached?

@Qix-
Copy link
Author

Qix- commented May 19, 2016

Setting a breakpoint in the memory version didn't work, either. Why can't I set breakpoints in the files? That makes no sense.

The debugger statement was being hit - that was the main script being called. The command was literally

$ iron-node ./test.js

node-debug worked just fine. That's what I had to use.

@s-a
Copy link
Owner

s-a commented May 19, 2016

Cannot reproduce this behavior on windows 10 ironNode 3.0.4. Setting breakpoints works and debugger breaks code execution without problems.

@s-a s-a closed this as completed May 23, 2016
@Qix-
Copy link
Author

Qix- commented May 23, 2016

Alright, that's on Windows 10. Obviously this is an OS X specific bug... node-debug works just fine.

@Qix-
Copy link
Author

Qix- commented May 23, 2016

That also doesn't explain why debugger; didn't work.

@euge
Copy link

euge commented May 31, 2016

Same here...debugger is not being hit on OSX

@s-a
Copy link
Owner

s-a commented Jun 1, 2016

pls try the latest release of electron. Will publish a version in a few seconds

@s-a s-a changed the title Reloading resets breakpoints debugger is not being hit on OSX Jun 1, 2016
@s-a s-a reopened this Jun 1, 2016
@dtothefp
Copy link

dtothefp commented Jun 8, 2016

think I'm having the same issue, sorry if I filed a duplicate #108. iron-node v2.2.15

@s-a
Copy link
Owner

s-a commented Jun 9, 2016

Unfortunately I do not work with Mac anymore. So I can not support this issue directly.
Can you try to upgrade electron to latest version in ironNode 3.x?

https://github.com/s-a/iron-node/blob/master/docs/CHANGE-ELECTRON-VERSION.md

Otherwise we need to create an issue at the electron repo.

@babsonmatt
Copy link

electron-prebuilt 1.2.2 seems to have resolved the issue for me on OSX

@s-a
Copy link
Owner

s-a commented Jun 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants