<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi meilin,<br>
<br>
<br>
I use Eclipse and pydev, which works very well on windows. I can
inspect all variables and get error messages.<br>
On Linux pydev freezes my mouse clicks, so that's not much of a
help.<br>
<br>
Take a look at lines 51 - 62 of this file:<br>
<a class="moz-txt-link-freetext" href="https://github.com/XRoemer/Organon/blob/master/source/py/factory.py">https://github.com/XRoemer/Organon/blob/master/source/py/factory.py</a><br>
<br>
You need to install pydev inside Eclipse. <br>
Start the pydev server. <br>
Set a pd() inside of your code.<br>
Your code should stop at pd() and you can inspect the variables.<br>
<br>
<br>
Best,<br>
Xaver<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 20.03.2016 um 14:48 schrieb meilin:<br>
</div>
<blockquote
cite="mid:CAHwQ_JMgzxv0DK+DtzLBCtzcw4AjYL5qc=Erwc-VnX5aJOPYGg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Hi,
I have a question that how to debug python <span
style="background-color:inherit;line-height:1.5">extensions.
for example how to debug </span><span
style="background-color:inherit;line-height:1.5">4.3.3.2_build/instdir/program/pythonscript.py,</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span
style="background-color:inherit;line-height:1.5">Now i
debug the file by write debug information in log.txt, but
it's too trouble.<br>
</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span
style="background-color:inherit;line-height:1.5">src/pyuno/README
file say that<br>
To have much joy debugging python extensions you need to:<br>
a) edit pythonloader.py in your install setting DEBUG=1
at the top<br>
b) touch pyuno/source/module/pyuno_runtime.cxx and 'make
debug=true' in pyuno<br>
<br>
Then you'll start to see your exceptions on the console
instead of them getting lost at the UNO interface.<br>
</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span
style="background-color:inherit;line-height:1.5">I have
done it like this , but it's useless.<br>
</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span
style="background-color:inherit;line-height:1.5"><br
style="background-color:inherit">
</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span
style="background-color:inherit;line-height:1.5">another
question</span></div>
<div
style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:微软
雅黑;font-size:14px;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div style="background-color:inherit">in
src/scripting/source/pyprov/pythonscript.py.<br>
<span
style="color:rgb(0,0,0);font-family:微软雅黑;font-size:14px;font-
style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">why
the parameters of out and outindex have not been used.</span><br>
</div>
</div>
<img style="margin-right: 25px;"
src="cid:part1.03030901.03070804@web.de"><br>
<span
style="color:rgb(0,0,0);font-family:微软雅黑;font-size:14px;font-
style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">waiting
for you help, thank you!</span></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
</blockquote>
<br>
</body>
</html>