-
Notifications
You must be signed in to change notification settings - Fork 173
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
Debugging non-encoded javascript code #135
Comments
Can you provide a minimal setup that shows your issue? |
I have tried a small project with
I tried both I'm using Node v14.16.1. |
Thank you for the quick help! Thanks, |
Hello @OsamaAbbas, I have prepared small setup with the code that I found suspicious, however it works fine. You can do: However, I still have problems in the complete code. The points I noticed:
Any clues? |
Hello @OsamaAbbas, okay, now I have a working example. And I cannot figure it out. Running:
My concern was there is an issue in this Thread loading logic. However, in that case simplay would not work properly. I'm using node v14.15.4 Thanks, |
Ok, I changed line 124 to change anonymous function to the classic declaration. However, I don't understand why anonymous functions can be a problem? Thanks, |
Arrow functions have cause a few issues and bugs before. I don't know the exact reason, but I believe it is related to the way v8 handles them in the C++ source code. So there is nothing that can be done to fix them from bytenode or node itself. I will add your case to the known issues and limitations in the README file soon. Thank you for reporting and finding out the cause of the issue. |
Thank YOU for bytenode actually. Is there any way to fix the case where the code does: yes, I know - but people still do this :) Thanks, |
This code: var code = fs.readFileSync("./file.js").toString();
eval(code); Should work with bytenode. So if that code is in a file named The only place where |
No, not this case :-) |
This can't be done. If you want to protect |
Hello,
I am trying to use bytenode in such way that some of the application files will be compiled
and some will stay in plain source code. I would like to have the ability to debug the
non-compiled files.
The compiled file loads the non-compiled one and this works ok, but the
ndb debugger will not break at the debugger statement if it is being launched
through compiled file.
Any idea on that?
The text was updated successfully, but these errors were encountered: