<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:ii_im0ly6fe0_153943e591e9192b"><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>