That’s a great contribution, thanks John! Will add it to the page, check it, tweet it, etc.
Gj On Wed, 5 Aug 2020 at 09:54, John <j...@lemckes.com> wrote: > Hi, > > I, too, have been struggling to set up an environment for debugging > NetBeans. > Those videos are somewhat out of date and a bit vague when it comes to > the actual location of files etc. > I think a textual version of the instructions would be useful. It would > also be easier to update when there are changes needed. > Here's my attempt at a set of steps required ... > > > --------------------------------------------------------------------------------- > > # Check out netbeans > $ cd <path-to-my-projects> > $ git clone https://github.com/apache/netbeans.git > $ cd netbeans > > # Build netbeans > $ ant > $ ant tryme ## just to confirm it runs > > Close the IDE > > Open Apache NetBeans IDE 12.0 > > # Add your github clone as a NetBeans Platform > Open the 'NetBeans Platform Manager' (Tools->NetBeans Platforms) > Click 'Add Platform ...' > Navigate to <path-to-my-projects>/netbeans/nbbuild/ and select netbeans > Click 'Next >' > Click 'Finish' > Select the 'Sources' tab > Click 'Add ZIP/Folder ...' > Select <path-to-my-projects>/netbeans and click 'Open' > Close 'NetBeans Platform Manager' > > # Create a new project (File->New Project...) > In 'Categories:' select 'Java with Ant / NetBeans Modules' > In 'Projects:' select 'Module Suite' > Click 'Next >' > Enter a 'Project Name:' (mine's called NB-IDE-github) > Optionally change the 'Project Location:' > Click 'Finish' > > # Locate the source code for your github clone > Open the 'Favorites' window (Window->Favorites) > Select 'Add to Favorites...' in the right-click context menu > Select <path-to-my-projects>/netbeans and click 'Add' > > # Set a breakpoint in the source code > # as a start try the entry point "public static void main (String args[])" > In the 'Favorites' tab navigate to > "platform/o.n.bootstrap/src/org/netbeans" and open Main.java > Set a breakpoint > > # Start the debugger > Select your IDE project (e.g. NB-IDE-github) from the 'Run->Set Main > Project' menu > Start the debugger : > 'Debug->Debug Main Project' menu, > or > Click the Debug toolbar item > or > Ctrl+F5 > > > --------------------------------------------------------------------------------- > > I hope that helps, > > jostle > > > On 2020/08/05 01:14:41, Ernie Rael <e...@raelity.com> wrote: > > On the main page> > > > > http://netbeans.apache.org/> > > > > "Participate" links to> > > > > http://netbeans.apache.org/participate/submit-pr.html> > > > > and you will find directions and some you tube videos that show how to > > > debug netbeans itself> > > > > -ernie> > > > > On 8/4/2020 2:36 PM, Darwin Te wrote:> > > > Hi,> > > >> > > > I have checkout netbeans source from git and able to build it using > ant command.> > > >> > > > How do I debug netbeans itself and build it with java debug > information?> > > >> > > > I want to see stack trace why the cpu usage is always 100%.> > > >> > > > Also memory keeps on increasing if i perform a search in file.> > > >> > > > Thanks.> > > >> > > > Best regards,> > > >> > > > Darwin> > > >> > > >> > > > > > > ---------------------------------------------------------------------> > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org> > > For additional commands, e-mail: dev-h...@netbeans.apache.org> > > > > For further information about the NetBeans mailing lists, visit:> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists> > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >