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

Add package debugging mode #32

Open
pazdera opened this issue May 13, 2014 · 2 comments
Open

Add package debugging mode #32

pazdera opened this issue May 13, 2014 · 2 comments
Assignees

Comments

@pazdera
Copy link
Contributor

pazdera commented May 13, 2014

In many cases it would be useful to be able to manually intervene to try different things during a package build in case something is wrong without having to go through the whole commit-push-build cycle.

To overcome this we could add a debugging mode, where dr would install all the dependencies, and yield you shell access to the build chroot with the code prepared for editing. After making the changes, it would allow you to build, push and repeat the process as many times as necessary.

The debug console could look like this:

dr debug kano-init
... installing dependencies ...
... preparing build root ...
... done ...

Debugging console for kano-init.
Type help for the list of supported commands, or exit to exit.
dr debug> help 
  help        display this
  exit        exit the console
  build       test-build the package
  push        push the test-build to scratch
  edit        change the package sources
  diff        show the changes made
dr debug> edit
root@root:/kano-init$ nano debian/control
root@root:/kano-init$ nano kano-init
root@root:/kano-init$ exit
dr debug> build
... building kano-init ...
dr debug> push
... pushing kano-init to scratch ...
dr debug> diff
+abc
-cba
dr debug> exit

cc @alex5imon @zsero

@pazdera pazdera self-assigned this May 20, 2014
@pazdera pazdera added this to the dr 0.2 milestone May 22, 2014
@pazdera pazdera removed this from the dr 0.2 milestone Aug 21, 2014
@pazdera
Copy link
Contributor Author

pazdera commented Nov 25, 2014

Currently work in progress (see the debug-console branch).

@pazdera
Copy link
Contributor Author

pazdera commented Aug 14, 2015

I don't seem to find enough time to finish this one, so if somebody would like to take it from here, you're more than welcome!

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

No branches or pull requests

1 participant