Sorry I misread the part where you wanted to run NiFi inside IntelliJ, I was talking about running it externally (from the command-line, e.g.) and connecting the IntelliJ debugger. I haven't run NiFi itself using IntelliJ, maybe someone else can chime in for that.
On Mon, Oct 26, 2020 at 12:03 PM Matt Burgess <[email protected]> wrote: > > Yes, that's a pretty common operation amongst NiFi developers. In > conf/bootstrap.conf there's a section called Enable Remote Debugging > and a commented-out line something like: > > java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 > > You can remove the comment from that line and set things like the > address to the desired port, whether to suspend the JVM until a > debugger connects, etc. Then in IntelliJ you can create a new > configuration of type Remote, point it at the port you set in the > above line, and connect the debugger. It will then stop at breakpoints > and you can do all the debugging stuff like add Watches, execute > expressions (to change values at runtime), etc. > > Regards, > Matt > > On Mon, Oct 26, 2020 at 11:52 AM Darren Govoni <[email protected]> wrote: > > > > Hi > > Is it possible to run Nifi from inside IntelliJ with debugging such that > > I can hit the app from my browser and trigger breakpoints? > > > > If anyone has done this can you please share any info? > > > > Thanks in advance! > > Darren > > > > Sent from my Verizon, Samsung Galaxy smartphone > > Get Outlook for Android
