Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The configuration is not triggered by shortcut if it is already assigned to another action #14

Open
an2riy opened this issue Aug 29, 2023 · 4 comments

Comments

@an2riy
Copy link

an2riy commented Aug 29, 2023

Hello.
Is it possible to improve the functionality?
I need to run the custom configuration when the debug is enabled by Alt+D.
In this case, the shortcut is assigned to the default action to Start Listening for PHP Xdebug Configuration + a custom configuration, but the custom configuration is not triggered (ignored).

PhpStorm 2023.2.1
Build #PS-232.9559.64, built on August 25, 2023
Runtime version: 17.0.8+7-b1000.8 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.2.0-26-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 5120M
Cores: 12
Registry:
    editor.focus.mode.color.light=5b595c
    ide.editor.tab.selection.animation=true
    ide.main.menu.expand.horizontal=false
    run.processes.with.pty=TRUE
    ide.new.editor.tabs.vertical.borders=true
    ide.experimental.ui=true
    ide.balloon.shadow.size=0
    editor.focus.mode.color.dark=5b595c

Non-Bundled Plugins:
    net.sjrx.intellij.plugins.systemdunitfiles (223.230322.126)
    de.femtopedia.diffplugin (2.1.11)
    intellij-awk (0.4.1)
    com.nasller.CodeGlancePro (1.7.4)
    org.toml.lang (232.8660.88)
    com.ultrahob.zerolength.plugin (0.95)
    org.elasticsearch4idea (2023.2.7-232)
    org.turbanov.run.configuration.as.action (1.5.1)
    com.intellij.properties (232.8660.88)
    String Manipulation (9.11.3)
    ir.msdehghan.plugins.ansible (0.92)
    de.achimonline.ansible_lint (1.5.4)
    indent-rainbow.indent-rainbow (2.2.0)
    com.intellij.grazie.pro (0.3.244)
    ru.adelf.idea.dotenv (2023.2)
    de.espend.idea.php.annotation (9.4.0)
    com.kalessil.phpStorm.phpInspectionsUltimate-mp (2023.1)
    com.intellij.ml.llm (232.9613)
    com.virtuslab.git-machete (4.0.3)
    izhangzhihao.rainbow.brackets (2023.3.4)
    pro.bashsupport (3.3.0.232)
    lv.midiana.misc.phpstorm-plugins.deep-keys (2022.08.03.001)
    fr.adrienbrault.idea.symfony2plugin (2022.1.255)
    com.chrisrm.idea.MaterialThemeUI (8.11.0)
    com.intellij.lang.jsgraphql (4.0.2)
    com.magento.idea.magento2plugin (5.1.1)
    org.sonarlint.idea (8.5.1.75093)
    com.mallowigi (93.0.1)
    zielu.gittoolbox (500.0.15+222)
    mobi.hsz.idea.gitignore (4.5.1)
    com.github.blarc.gitlab-template-lint-plugin (1.13.2)

Current Desktop: ubuntu:GNOME
@turbanoff
Copy link
Owner

I'm not sure I get the idea.
Can you please provide screenshots of what you have and what are you trying to achieve?

@an2riy
Copy link
Author

an2riy commented Aug 29, 2023

Here is the native PHPStorm shortcut Atl + D to Start Listening for PHP Xdebug Configuration.
Screenshot from 2023-08-29 17-01-49
I added a custom configuration to enable XDebug and assigned it to the same shortcut Atl + D.
Screenshot from 2023-08-29 17-03-39
Screenshot from 2023-08-29 17-03-51
But when I press Alt+D only works the native PHPStorm action (Start Listening for PHP Xdebug Configuration), and the custom configuration does not run.
Is it possible to improve somehow (Because right now two actions are assigned to the Atl + D, but triggers only the first native one)?

@turbanoff
Copy link
Owner

I don't think it's possible to assign the same shortcut to 2 different actions.

Perhaps you can add "Before Launch" task to your Run Configuration?
In IntelliJ IDEA it can be done in Run/Debug Configurations window
изображение
If it's possible to add Listen for Debug Connections as Before Launch task - you can use modified Run configuration to achieve the same result.

@an2riy
Copy link
Author

an2riy commented Aug 30, 2023

Thanks, Only wanted to confirm if it is possible or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants