What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, i would like to debug our ProductAbstractSearchDataMapper in Phpstorm, unf

U020JD89L4F
U020JD89L4F Posts: 5 🧑🏻‍🚀 - Cadet

Hello,

i would like to debug our ProductAbstractSearchDataMapper in Phpstorm, unfortunatly im not able to reach my breakpoint. Which console command do i have to use to debug this class?
thanks in advance

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    Have you tried to set other breakpoints in other classes? - just to verify that the debugging works properly?

  • U020JD89L4F
    U020JD89L4F Posts: 5 🧑🏻‍🚀 - Cadet

    i already debugged different console commands (data:import ...). That worked perfectly.

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)
    edited February 2023

    likely that code is used via background task in jenkins. I would stop the scheduler for all stores; change something in an abstract product. and go into the cli with debug mode: docker/sdk cli -x and manually work on the queues with console queue:task:start <queue-name> or console queue:worker:start

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    that should trigger the breakpoint

  • U020JD89L4F
    U020JD89L4F Posts: 5 🧑🏻‍🚀 - Cadet

    awesome. perfect thanks, that was it.