Different program arguments for 'run' and 'debug' in Intellij Idea

sonallux

I want to have different program arguments for 'run' and 'debug' in Intellij Idea. So my program can slightly change its behaviour on handling logging and dealing with exceptions when I am debugging.

After searching for hours I have not found a solution for that yet. Does anyone if this is possible in Intellij Idea? and if so, what must I change in my run configuration?

I know you can simply make two different run configurations one for 'run' and one for 'debug'. But this is just inconvenient.

yole

This is not possible as of IntelliJ IDEA 14. Given that the JVM allows you to attach or detach a debugger to your process at any time, adding this feature would make fairly limited sense.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

IntelliJ IDEA program arguments (shortcut)

From Dev

Jprofiler + Vaadin + Intellij Idea : program arguments

From Dev

IntelliJ IDEA run/debug just one file

From Dev

IntelliJ IDEA 13.1 is missing Run/Debug windows

From Dev

How to run a spark example program in Intellij IDEA

From Dev

Run configuration with command line program in IntelliJ IDEA

From Dev

IntelliJ IDEA: ClassNotFoundException if run Debug, execution/run does work

From Dev

Can't run and debug groovy tests under intellij idea

From Dev

How can I setup and run/debug ElasticSearch in IntelliJ IDEA

From Dev

How can I setup and run/debug ElasticSearch in IntelliJ IDEA

From Dev

How to set a run/debug configuration in IntelliJ IDEA using a Jar file?

From Dev

BEX error when trying to compile/run a program using Intellij IDEA

From Dev

IntelliJ IDEA maven Run/Debug Configuration, maven goal is run but app does not run automatically

From Dev

Run/Debug ElasticSearch in IntelliJ

From Dev

"intellij idea" debug static class

From Dev

"intellij idea" debug static class

From Dev

Command line in IntelliJ, program arguments field in debug/configurations, how to structure them?

From Dev

Arguments to run the scala program

From Dev

Why WildFly throws an Exception in Intellij IDEA's debug mode while the run mode works perfectly well?

From Dev

How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

From Dev

How to debug/run a single gatling simulation in IntelliJ IDEA without sbt command?

From Dev

How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

From Dev

Why WildFly throws an Exception in Intellij IDEA's debug mode while the run mode works perfectly well?

From Dev

How to select a different module to run when you click the Run button in IntelliJ IDEA?

From Dev

Maven run/debug configurations in Intellij

From Dev

Write and run pyspark in IntelliJ IDEA

From Dev

Run jar configuration in IntelliJ IDEA

From Dev

Can not press "run" in Intellij idea

From Dev

Intellij IDEA pluggin cannot be run

Related Related

  1. 1

    IntelliJ IDEA program arguments (shortcut)

  2. 2

    Jprofiler + Vaadin + Intellij Idea : program arguments

  3. 3

    IntelliJ IDEA run/debug just one file

  4. 4

    IntelliJ IDEA 13.1 is missing Run/Debug windows

  5. 5

    How to run a spark example program in Intellij IDEA

  6. 6

    Run configuration with command line program in IntelliJ IDEA

  7. 7

    IntelliJ IDEA: ClassNotFoundException if run Debug, execution/run does work

  8. 8

    Can't run and debug groovy tests under intellij idea

  9. 9

    How can I setup and run/debug ElasticSearch in IntelliJ IDEA

  10. 10

    How can I setup and run/debug ElasticSearch in IntelliJ IDEA

  11. 11

    How to set a run/debug configuration in IntelliJ IDEA using a Jar file?

  12. 12

    BEX error when trying to compile/run a program using Intellij IDEA

  13. 13

    IntelliJ IDEA maven Run/Debug Configuration, maven goal is run but app does not run automatically

  14. 14

    Run/Debug ElasticSearch in IntelliJ

  15. 15

    "intellij idea" debug static class

  16. 16

    "intellij idea" debug static class

  17. 17

    Command line in IntelliJ, program arguments field in debug/configurations, how to structure them?

  18. 18

    Arguments to run the scala program

  19. 19

    Why WildFly throws an Exception in Intellij IDEA's debug mode while the run mode works perfectly well?

  20. 20

    How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

  21. 21

    How to debug/run a single gatling simulation in IntelliJ IDEA without sbt command?

  22. 22

    How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

  23. 23

    Why WildFly throws an Exception in Intellij IDEA's debug mode while the run mode works perfectly well?

  24. 24

    How to select a different module to run when you click the Run button in IntelliJ IDEA?

  25. 25

    Maven run/debug configurations in Intellij

  26. 26

    Write and run pyspark in IntelliJ IDEA

  27. 27

    Run jar configuration in IntelliJ IDEA

  28. 28

    Can not press "run" in Intellij idea

  29. 29

    Intellij IDEA pluggin cannot be run

HotTag

Archive