IntelliJ run/debug config program arguments

895 views
Skip to first unread message

Brett Tofel

unread,
Mar 26, 2021, 2:55:17 PM3/26/21
to Quarkus Development mailing list
Hi,
I'm trying to debug in IntelliJ and I'm not sure if this is really just a question for the Quarkus IntelliJ plugin author, but maybe someone here can easily point me to what I am missing. Or a workaround...

I want to pass a program command-line argument, like I would if I ran this app locally with

java -jar target/tekton-scorecard-image-1.0-SNAPSHOT-runner.jar test

But I can't see a field to enter command line arguments here:

Untitled 2.png

Georgios Andrianakis

unread,
Mar 26, 2021, 2:58:55 PM3/26/21
to Brett Tofel, Quarkus Development mailing list
That IntelliJ run configuration starts dev mode, so it's rather unlikely it has an option to pass program arguments

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/e421164c-3ce9-4894-b768-53d863f50aa0n%40googlegroups.com.

Brett Tofel

unread,
Mar 26, 2021, 5:20:47 PM3/26/21
to Quarkus Development mailing list
ah, okay, thanks, I am just adding code to enter the args for me for now.

Marcus Paulo

unread,
Mar 26, 2021, 11:09:16 PM3/26/21
to bto...@redhat.com, Quarkus Development mailing list
Hi Brett, 
I do this to debug in Intellij:
 1 - Run: mvn quarkus:dev
 2 - insert your breakpoint in Intellij
 3 - From the main menu, select Run | Attach to process. 
4 - The list of running processes is shown. Select the process to attach to.

I never needed to debug with the command line.


Sorry, with I understood something wrong. 

Best regards,
Marcus


--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/e421164c-3ce9-4894-b768-53d863f50aa0n%40googlegroups.com.
--
Abraços,
Marcus Paulo

Luca Masini

unread,
Mar 27, 2021, 5:20:55 AM3/27/21
to mpau...@gmail.com, bto...@redhat.com, Quarkus Development mailing list
Hi Breff, Idea Ultimate version 2020.3 is totally integrated with Quarkus.

If you have quarkus-plugin in you pom a Run Configuration will be created for you and you'll be able to Run/Debug and pass parameters:

image.png




--
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************

Max Rydahl Andersen

unread,
Mar 29, 2021, 5:10:35 AM3/29/21
to Georgios Andrianakis, Brett Tofel, Quarkus Development mailing list
On 26 Mar 2021, at 19:58, Georgios Andrianakis wrote:

> That IntelliJ run configuration starts dev mode, so it's rather
> unlikely it
> has an option to pass program arguments

dev mode supports passing arguments.

Brett - best you open bug/feature report at
https://github.com/redhat-developer/intellij-quarkus

/max
>
> On Fri, Mar 26, 2021, 20:55 Brett Tofel <bto...@redhat.com> wrote:
>
>> Hi,
>> I'm trying to debug in IntelliJ and I'm not sure if this is really
>> just a
>> question for the Quarkus IntelliJ plugin author, but maybe someone
>> here can
>> easily point me to what I am missing. Or a workaround...
>>
>> I want to pass a program command-line argument, like I would if I ran
>> this
>> app locally with
>>
>> java -jar target/tekton-scorecard-image-1.0-SNAPSHOT-runner.jar test
>>
>> But I can't see a field to enter command line arguments here:
>>
>> [image: Untitled 2.png]
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups
>> "Quarkus Development mailing list" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an
>> email to quarkus-dev...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/quarkus-dev/e421164c-3ce9-4894-b768-53d863f50aa0n%40googlegroups.com
>> <https://groups.google.com/d/msgid/quarkus-dev/e421164c-3ce9-4894-b768-53d863f50aa0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to quarkus-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/quarkus-dev/CALeTM-m5t%2Bkojxt-FnjPukEZQx4G%2B%2BvzVRTO-xVG86CEqHbFZA%40mail.gmail.com.


/max
https://xam.dk/about

Jean-Francois Maury

unread,
Mar 29, 2021, 5:27:16 AM3/29/21
to Max Andersen, Georgios Andrianakis, Brett Tofel, Quarkus Development mailing list
Not sure this is a concern for Quarkus Tools for IntelliJ as we don't implement run configurations (as we delegate that to Maven or Gradle run configurations). Maybe it's an issue for the JetBrains Quarkus support



--

Jeff Maury

Manager, DevTools

Red Hat EMEA

jma...@redhat.com   

Luca Masini

unread,
Mar 29, 2021, 5:30:18 AM3/29/21
to jma...@redhat.com, Max Andersen, Georgios Andrianakis, Brett Tofel, Quarkus Development mailing list
Hi Guys, IntelliJ Plugin works great, can I understand the problem ?

Max Rydahl Andersen

unread,
Mar 29, 2021, 6:13:19 AM3/29/21
to Jean-Francois Maury, Georgios Andrianakis, Brett Tofel, Quarkus Development mailing list

maybe it is this plugin Brett used https://plugins.jetbrains.com/plugin/14242-quarkus-run-configs ?

that is made by someone else than quarkus tools team nor IntelliJ team ...

Brett Tofel

unread,
Mar 29, 2021, 3:45:08 PM3/29/21
to Max Rydahl Andersen, Jean-Francois Maury, Georgios Andrianakis, Quarkus Development mailing list
So just to recap from the thread:

Lucas: Your screenshot shows the same problem mine shows, no way to pass program arguments.

Max: I am using the plugin that I guess is the JetBrains bundled Quarkus one? Reports itself as: "bundled 203.7717.56"

Jean-Francois: I guess you are saying the opposite of what Max said initially? That the bundled Quarkus for Intellij doesn't handle the Run Config so don't bother them with a bug or feature request for this?

Net result: I'm kind of confused as to who to make a feature request (bug report?) to, since I do think the Run Config should take program arguments?

Brett Tofel
he/him/his
Sr. Software Engineer
Red Hat (OpenShift Operator Portfolio Enablement  / OLM)
 

Max Rydahl Andersen

unread,
Mar 29, 2021, 3:55:58 PM3/29/21
to Brett Tofel, Jean-Francois Maury, Georgios Andrianakis, Quarkus Development mailing list

There are three quarkus related plugins in intellij marketplace:

  1. Quarkus Tools - https://plugins.jetbrains.com/plugin/13234-quarkus-tools
    that is distributed by redhat devtools team
    works with community as well as ultimate/commercial version.

  2. IntelliJ's own Quarkus Tools - https://www.jetbrains.com/help/idea/quarkus.html
    works only with Ultimate; different features
    no redhat or quarkus team involved besides we've given out feedback

  3. Quarkus Run Configs - https://plugins.jetbrains.com/plugin/14242-quarkus-run-configs
    made by external contributor. asked to consider contributing to quarkus tools to avoid
    the confusion but haven't heard back :)

knowing that let me correct below:

So just to recap from the thread:
Lucas: Your screenshot shows the same problem mine shows, no way to pass
program arguments.
Max: I am using the plugin that I guess is the JetBrains bundled Quarkus
one? Reports itself as: "bundled 203.7717.56"

So this is jet brains own Quarkus tools afaics. You need to report it against
intellijs issue tracker youtrack.

Jean-Francois: I guess you are saying the opposite of what Max said
initially? That the bundled Quarkus for Intellij doesn't handle the Run
Config so don't bother them with a bug or feature request for this?

Correct, I missed that this was run config related and Jean F. is totally right
in saying its not related to Quarkus Tools.

Net result: I'm kind of confused as to who to make a feature request (bug
report?) to, since I do think the Run Config should take program arguments?

Intellij - unless you also have quarkus run config plugin installed as it provides
overlapping functionality.

I hope that helps :)

Brett Tofel
he/him/his
Sr. Software Engineer
Red Hat (OpenShift Operator Portfolio Enablement / OLM)

Reply all
Reply to author
Forward
0 new messages