[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Plugin development in Netbeans: breakpoints not working.
Page 1 of 1

Plugin development in Netbeans: breakpoints not working.

Posted: 20 Aug 2017 09:06
by olavla
ff.jpeg
ff.jpeg (39.12KiB)Viewed 17703 times
Hi,

I'm developing a Gephi (filter) plugin in Netbeans and although the plugin run fine, running it in debug mode with a breakpoint never breaks (although I'm sure to hit the code).

How can I ensure it breaks so I can step through my code?

These are my steps:

-Install NetBeans & Maven
-Install gephi-plugins-master.zip
-mvn org.gephi:gephi-maven-plugin:generate
-put all the code in place
-mvn clean package
-mvn org.gephi:gephi-maven-plugin:run

Result: code works 100%

Now I open NetBeans > Open Project & add the plugin folder.
-It shows my plugin as module.
-I double click the module and it opens as its own section (see sceenshot; Module BackTracer)
-I can't run the module on it's own - it can't find certain dependencies.
-I can run the Gephi-plugin project: it starts Gephi and my plugin runs fine.

Now I add some breakpoints in the Module BackTracer, specifically in the BackTracerBuilder (on various points, methods & line breakpoints). I also defined a Class entry breakpoint.

None of those breakpoints ever hit. Why?

Btw: in NetBeans the code shows as containing a lot of errors. However, this is code 100% copied from an existing plugin with some names changed. It runs 100% functional and mvn org.gephi:gephi-maven-plugin:validate doesn't give me any errors/warning. Weird right?

Thanks for your inputs!

Image

Re: Plugin development in Netbeans: breakpoints not working.

Posted: 20 Aug 2017 10:59
by olavla
Solution was to start from scratch and build a new plugin. For some reason the plugin was installed but never updated when I executed, and thus it never hit the code.