odo dev --debug
: add flag to run non-default debug command
#6212
Labels
area/dev
Issues or PRs related to `odo dev`
kind/user-story
An issue of user-story kind
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
User Story
This is similar to #5775, where I am able to execute an alternative run command instead of the default one.
Example:
SpringBoot devfile has the following default debug command.
In some situations, I want to run my Spring Boot application with a different profile.
This can be done by setting the
spring.profiles.active=postgres
JVM system property to thejava
command.Currently, I have to edit the
commandLine
in order to be able to execute with a different profile.Instead of that, it would be nice to be able to add an extra (non-default) debug command like this:
And then simply execute
odo dev --debug --debug-command debug-with-postgres
; when I want to switch back to using the default profile, I stop runningodo dev
command and start it again, but this time without--debug-command
flag.Acceptance Criteria
odo dev
should have--debug-command
flag that controls what debug command is used to start the application in debug mode.Links
odo dev
add flag to run non-default run command. #5775 andodo dev
add flag to run non-default build command. #5776/kind user-story
The text was updated successfully, but these errors were encountered: