You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aurora.apache.org by David Pan <da...@gmail.com> on 2014/10/02 02:31:19 UTC
Running Aurora in Debug Mode on Vagrant
Hi,
I was wondering if there is a way to run Aurora in debug mode locally on
vagrant. Specifically, I want to put breakpoints in the health checker in
Aurora executor.
Thanks,
David Pan
Re: Running Aurora in Debug Mode on Vagrant
Posted by Kevin Sweeney <ke...@apache.org>.
You can pass flags to the underlying py.test runner:
http://pytest.org/latest/usage.html
For example
./pants src/test/python:all -vs
will stop suppressing stdout and stderr.
The help documentation is a little messed up right now due to
https://groups.google.com/d/msg/pants-devel/4-x33CFhMoU/UIMQavEFdT0J
On Thu, Oct 2, 2014 at 11:42 AM, David Pan <da...@gmail.com> wrote:
> Hi,
>
> I have another question. Normally when I use vagrant to run aurora, and I
> create a job on devcluster, I can find the aurora logs one level above the
> sandbox of the task. Now, I am trying to run the unit tests for the aurora
> executor on vagrant. I was wondering where I can find the log messages
> generated by the aurora executor code when I am running unit tests.
>
> Thanks,
>
> David Pan
>
> On Wed, Oct 1, 2014 at 5:31 PM, David Pan <da...@gmail.com> wrote:
>
> > Hi,
> >
> > I was wondering if there is a way to run Aurora in debug mode locally on
> > vagrant. Specifically, I want to put breakpoints in the health checker
> in
> > Aurora executor.
> >
> > Thanks,
> >
> > David Pan
> >
>
Re: Running Aurora in Debug Mode on Vagrant
Posted by David Pan <da...@gmail.com>.
Hi,
I have another question. Normally when I use vagrant to run aurora, and I
create a job on devcluster, I can find the aurora logs one level above the
sandbox of the task. Now, I am trying to run the unit tests for the aurora
executor on vagrant. I was wondering where I can find the log messages
generated by the aurora executor code when I am running unit tests.
Thanks,
David Pan
On Wed, Oct 1, 2014 at 5:31 PM, David Pan <da...@gmail.com> wrote:
> Hi,
>
> I was wondering if there is a way to run Aurora in debug mode locally on
> vagrant. Specifically, I want to put breakpoints in the health checker in
> Aurora executor.
>
> Thanks,
>
> David Pan
>
Re: Running Aurora in Debug Mode on Vagrant
Posted by Kevin Sweeney <ke...@apache.org>.
Outside the vagrant environment you can use pdb
<https://docs.python.org/2/library/pdb.html> (add a line like import pdb;
pdb.set_trace() at the line you want a breakpoint).
On Wed, Oct 1, 2014 at 6:07 PM, Kevin Sweeney <ke...@apache.org> wrote:
> Debug logging is likely to be your best bet here. That is: liberal use of
> log.debug and making sure the executor is started with
> --log_to_stderr=google:DEBUG
>
> On Wed, Oct 1, 2014 at 5:31 PM, David Pan <da...@gmail.com> wrote:
>
>> Hi,
>>
>> I was wondering if there is a way to run Aurora in debug mode locally on
>> vagrant. Specifically, I want to put breakpoints in the health checker in
>> Aurora executor.
>>
>> Thanks,
>>
>> David Pan
>>
>
>
Re: Running Aurora in Debug Mode on Vagrant
Posted by Kevin Sweeney <ke...@apache.org>.
Debug logging is likely to be your best bet here. That is: liberal use of
log.debug and making sure the executor is started with
--log_to_stderr=google:DEBUG
On Wed, Oct 1, 2014 at 5:31 PM, David Pan <da...@gmail.com> wrote:
> Hi,
>
> I was wondering if there is a way to run Aurora in debug mode locally on
> vagrant. Specifically, I want to put breakpoints in the health checker in
> Aurora executor.
>
> Thanks,
>
> David Pan
>