-
Notifications
You must be signed in to change notification settings - Fork 841
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
NetBeans only supports obsolete node 6 debug protocol #4127
Comments
who can do something? please advise. |
See the referenced PR for an implementation. A test build is available here: http://doppel-helix.eu/NetBeans-dev-dev-8c9b627ced2efe6149d4df4df5f5e6d4e62181bb-release.zip It would be good if you could test it. |
done the settings in #4220 |
Not sure what you want to tell me. What I see is, that yo configured a node in version 12 and then you overrode the default with the wrong protocol. Since node 6.X the debug protocol is the "Chrome DevTools protocol". "V8 debug protocol" supported ended with the 6 series. It would help if you would not just throw in some screenshots without context and describe what you did, what you expected and what really happened. Screenshots can help, but without context they are useless. |
you posted to set on V8, my question is simple can we debug nodejs with
netbeans, if is posible ...give example hot to set exactly for versions
nodejs like 12.
On a sceen you posted i see version 10 nodejs so i am confused
…On Tue, Jun 14, 2022 at 10:52 AM Matthias Bläsing ***@***.***> wrote:
Not sure what you want to tell me. What I see is, that yo configured a
node in version 12 and then you overrode the default with the wrong
protocol.
Since node 6.X the debug protocol is the "Chrome DevTools protocol". "V8
debug protocol" supported ended with the 6 series.
It would help if you would not just throw in some screenshots without
context and describe what you did, what you expected and what really
happened. Screenshots can help, but without context they are useless.
—
Reply to this email directly, view it on GitHub
<#4127 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN6NPZSVE5P7NMEWVXXZWSLVPC2EHANCNFSM5WH23HFQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I assume, that you mean the second screenshot. That screenshot was only done to show the available protocols.
Yes - I tried it with a simple script. And could inspect variables, single step through the code, set breakpoints and in general do what I'd expect from a debugger.
As written node 6+ is "Chrome DevTools protocol" and this is also true for 12. |
Please show the message log from the NetBeans run (See: https://stackoverflow.com/questions/50462124/netbeans-where-to-find-the-ide-log). Please also get a thread dump from the moment where NetBeans seems to be unresponsive. With a JDK installed you can run:
|
i am very busy few days, i will resume after, sorry... |
Changing milestone to NB16 - I currently have no personal use case and the reported did not yet test. |
I'm removing milestone from this issue entirely. @matthiasblaesing please feel free to manage this one as you wish. |
Hello, I am having the same problem with Netbeans 19 on Centos 9. At my HTML/JS node options there is not any debug protocol to choose. |
@ChristoforosKor what do you want to do? If you want to debug code running in a webbrowser, this is not the right PR. This is about debugging CLI node programms. In theory the Chrome Developer Tools Protocol can be used with Chrome/Chromium, but given lack of interest in this, I did not followup. I don't like Chrome and Firefox seems to have only a very limited implementation of CDT available, that at my time of checking did not include JS debugging. |
I want to debug a node application.
με εκτίμηση
Χριστόφορος Κορυφίδης
κιν./mob. : +30 6932606269
Διεύθυνση: Κώτσου 9, 34100 Χαλκίδα.
Address : Kotsou 9, 34100 Chalkida Greece.
…On Mon, 2 Oct 2023 at 23:54, Matthias Bläsing ***@***.***> wrote:
@ChristoforosKor <https://github.com/ChristoforosKor> what do you want to
do? If you want to debug code running in a webbrowser, this is not the
right PR. This is about debugging CLI node programms. In theory the Chrome
Developer Tools Protocol can be used with Chrome/Chromium, but given lack
of interest in this, I did not followup. I don't like Chrome and Firefox
seems to have only a very limited implementation of CDT available, that at
my time of checking did not include JS debugging.
—
Reply to this email directly, view it on GitHub
<#4127 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEXDUJKIYHVXD7MDNJCCQ3X5MSZDAVCNFSM5WH23HF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZUGM3TKMBXGUYA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello, Any help is appreciated. |
@ChristoforosKor please give this some time. PR #4220 was bitrotting for more than a year because no further testing happend, I'll not just drop everything just because now the question is raised again. The debug options are not there because #4220 was never finalized. |
@ChristoforosKor please have a look at PR #4220. I updated it to be based on current master. This should allow you to test whether that would help you. The Checks page offers a testable development build:
|
@ChristoforosKor did this work for you? |
@matthiasblaesing Hello, I am sorry, I am not able to download from https://github.com/apache/netbeans/suites/17008902928/artifacts/971564310. Translating the above from greek language to english |
Don't know what github did to break downloads, but it works from browser. Please try again. |
As far as I know you need to be signed in to GitHub to download workflow artefacts, so it might be that (although 404 an odd response). |
@neilcsmith-net you are right. In a private browsing tab I can open the checks results overview page, but the artifact is not accessible. In this case a 404 is indeed wrong and 403 or 401 would be right. |
Ok, O downloaded ( I was loged in) and I managed to debug with chrome dev tools. Will this patch be imported in the next version (20)? |
@ChristoforosKor thank you for the check. No this will not make it for NB20. I'll have to get back into the PR, rereview it and get it into a mergeable state. |
Hello, Is this available on 21 release or will it be available on 22 release? |
@ChristoforosKor thank you for the reminder. I just merged the change to master - if nothing catastrophic happens, the change will be part of NB22. |
Apache NetBeans version
Apache NetBeans 13
What happened
Cannot use debug on node.js project, need some example step by step
How to reproduce
C:\nodejs\node.exe: [DEP0062]:
node --debug
andnode --debug-brk
are invalid. Please usenode --inspect
andnode --inspect-brk
instead.Message i get on attempt to debug.
Did this work correctly in an earlier version?
No
Operating System
win 10 pro node 12.13.1
JDK
13
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Forever
Are you willing to submit a pull request?
Yes
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: