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

How to debug migrations? #167

Open
Veetaha opened this issue Jan 24, 2020 · 1 comment
Open

How to debug migrations? #167

Veetaha opened this issue Jan 24, 2020 · 1 comment
Labels

Comments

@Veetaha
Copy link

Veetaha commented Jan 24, 2020

migrate cli application spawns a new process where the migration is run. This means we cannot easily debug our migrations, since debugger only attaches to CLI process and doesn't step into child process.

Could you please fix this?

You can go without creating child processes or add a flag for debugging.

@wesleytodd
Copy link
Collaborator

Migrate uses commander at the moment for this. I had some other issues related to the way commander handles it's child processes for sub commands and began the move off to yargs, which handles this much better. I have just not had time to finish it. I would love a PR which fixed this in commander or here (circumventing the commander behavior), which we could use, but I cannot promise working on this myself.

The current way to circumvent this is to call migrate-up instead of migrate up. These shortcut bins are setup for this reason. Hope that helps.

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

No branches or pull requests

2 participants