[Paraview] How to interrupt macros/Python script ?
Aron Helser
aron.helser at kitware.com
Fri Mar 30 09:57:35 EDT 2018
How does the debugger interact with python scripts in ParaView? In
debugging stand-alone scripts, I'll often insert:
import pdb; pdb.set_trace()
to trigger the debugger. I suspect you might be able to use 'rdbg' and use
that connection?
-Aron
On Fri, Mar 30, 2018 at 4:36 AM, Mathieu Westphal <
mathieu.westphal at kitware.com> wrote:
> Hello Miguel,
>
> The simplest way to do that, especially when debugging, is to raise an
> error.
>
> raise ValueError()
>
> Best regards,
>
> Mathieu Westphal
>
> On Fri, Mar 30, 2018 at 8:52 AM, Miguel Aguirre <aguirre.utn at gmail.com>
> wrote:
>
>> Hello,
>>
>>
>>
>> I’m testing some macros and Python Shell scripts. One of them requires an
>> iteration: it places the slice plane at several positions in order to
>> integrate values at each position. However, I found that once the
>> macro/script is executed, it is impossible to stop it (which annoys the
>> debugging process). I already tested "exit()" command in the Python Shell
>> but it does not works. There is way to interrupt the process?
>>
>>
>>
>> Thanks in advance.
>>
>> Miguel Angel AGUIRRE
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180330/f1bf359c/attachment.html>
More information about the ParaView
mailing list