Calling Developers!
We are reenergizing our code contribution process! Learn More

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..

Heya is there a way to run debug while you are doing docker up? `docker/sdk up --data -x` ? proly

Options
U01JBB8LNTE
U01JBB8LNTE Posts: 207 🧑🏻‍🚀 - Cadet

Heya is there a way to run debug while you are doing docker up? docker/sdk up --data -x ? proly not huh?

Comments

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    you mean making the start-up process log verbosely? or start docker in debug mode?

  • U01JBB8LNTE
    U01JBB8LNTE Posts: 207 🧑🏻‍🚀 - Cadet
    Options

    I have a breakpoint in the code and I want it to change the data, run the container with the new data and hit the breakpoint, but maybe I’m conflating two operations.

  • U01JBB8LNTE
    U01JBB8LNTE Posts: 207 🧑🏻‍🚀 - Cadet
    Options

    Yeh I think I was… I’ll just have to re-import then jump in then debug

  • UQ958DA4U
    UQ958DA4U Posts: 232 🧑🏻‍🚀 - Cadet
    Options

    If you're talking about debugging the import process, the easiest way to do it is to turn the scheduler OFF and run the queue worker manually. This will ensure that you'll hit the breakpoint.

  • Unknown
    Options

    during docker up this is probably unlikely

  • Unknown
    Options

    and i am with @UQ958DA4U on this ☝

  • Unknown
    Options

    in what part of the code is you breakpoint?

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    edited July 2021
    Options

    @U01JBB8LNTE when you run docker/sdk up the system “hits” the project code while going through the project installation pipeline defined in config/install/(docker?).yml file.

    You can execute any section of it on the already running container by running f.e.
    docker/sdk cli -x vendor/bin/install -r config/install/docker.yml -s demodata -vvv

    ..and do your debugging.
    “-s” stays for the section name: