Hi Gary, Interesting -- would you like to make a short YouTube clip about that scenario, to be added to the series?
Would be really cool. Gj On Sat, Jun 16, 2018 at 8:16 PM, Gary Bello <[email protected]> wrote: > I debug netbeans by adding to etc/netbeans.conf netbeans_default_options > string > -J-agentlib:jdwp=transport=dt_socket,suspend=n,server=y,address= > 127.0.0.1:61826 > > then run that netbeans and use a 2nd instance of netbeans to attach to the > address above > and set breakpoints/etc. > > The relevant source code of netbeans is opened as a project so the > debugging netbeans > can show source for breakpoints. > > one netbeans is used as the target for debugging and the 2nd for the > debugging. > -Gary > > > On Sat, Jun 16, 2018 at 4:24 AM, Jan Lahoda <[email protected]> wrote: > > > Hi, > > > > On Fri, Jun 15, 2018 at 8:58 PM, Peter Steele <[email protected]> > > wrote: > > > > > Is there a guide any where for building netbeans in the netbeans ide so > > you > > > can use netbeans to debug things? > > > > > > > To work on NetBeans itself (on a module or a set of modules from the main > > repository), I think this approach is used typically: > > -ensure the IDE is built (either using command line or from IDE as show > in > > the Geertjan's page) (this typically does only need to be done when > > significant changes are made to the sources, often by pulling in external > > changes). > > -open the set of modules you want to work on > > -then "Run", "Debug" and "Test" should work, when opening a single test > > file, it should be possible to run and debug the test, etc. These should > be > > fairly fast, as these don't need to rebuild everything. > > > > Jan > > > > > > > > > > On Fri, 15 Jun 2018, 19:48 Dmitry Avtonomov, < > > [email protected]> > > > wrote: > > > > > > > Thanks Matthias and Gj! > > > > > > > > I've added the extra Debug line to confluence wiki: > > > > > > > > https://cwiki.apache.org/confluence/display/NETBEANS/ > > > Development+Environment > > > > > > > > On Fri, Jun 15, 2018 at 11:33 AM Matthias Bläsing < > > > > [email protected]> > > > > wrote: > > > > > > > > > Hi Dmitry, > > > > > > > > > > Am Freitag, den 15.06.2018, 11:02 -0700 schrieb Dmitry Avtonomov: > > > > > > Just wanted to point out that: > > > > > > 1) The Netbeans project is potentially loosing lots of people who > > > would > > > > > > have liked to contribute, but can't find a way how. > > > > > > > > > > the insight is good, so you obvisually went through this and could > > > > > improve the documentation. That would help the project and you. > > > > > > > > > > Remember: Many current contributors are around for a long time, so > > they > > > > > now the places to look and the thinks to do. > > > > > > > > > > > 2) 10 minute turnaround time for fix-build-run-test cycle is too > > > much. > > > > > > > > > > This will require some one to step up and look through the build > > where > > > > > the time is spend. But normally you don't need to rebuild the whole > > > > > IDE. You build once and if you need to modify a set of modules, you > > > > > just rebuild these. > > > > > > > > > > > 3) Most importantly I don't know how to start the whole thing in > > > debug > > > > > > mode. Do I need to modify the ant script to make it wait for > > debugger > > > > > > connection? > > > > > > > > > > You can pass java options through the netbeans launcher via > > > > > "-J<javaarg>". This will run netbeans with debugging enabled: > > > > > > > > > > /bin/netbeans > > > > > -J-agentlib:jdwp=transport=dt_socket,suspend=y,server=y, > address=9009 > > > > > > > > > > To run a freshly build netbeans you can invoke: > > > > > > > > > > ant -Ddebug.port=9009 tryme > > > > > > > > > > This will start the build IDE with a test userdir and it will wait > on > > > > > tcp port 9009 for debugger connections. > > > > > > > > > > > 4) Just people fiddling around in debugger can lead to some fixes > > and > > > > > > contributions as we're observing system's behavior. > > > > > > > > > > Sure. > > > > > > > > > > I hope you stay and improve the situation. > > > > > > > > > > Matthias > > > > > > > > > > ------------------------------------------------------------ > > --------- > > > > > To unsubscribe, e-mail: dev-unsubscribe@netbeans. > > incubator.apache.org > > > > > For additional commands, e-mail: [email protected]. > > > apache.org > > > > > > > > > > For further information about the NetBeans mailing lists, visit: > > > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
