Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to debug a python script using the python4delphi components?

I want to add scripting capabilities to my application and I just came across python4delphi http://code.google.com/p/python4delphi/, which seems to be stable. At first sight it looks very easy to use on the developers side, but I couldn't find a way to debug a script. Would be great if I could embed the IDLE IDE in my application, I just have no idea how to do it.

Is there a easy way to add debugging capabilities with python4delphi? Should I use other script engines like pascalScript (seems to have been discontinued)?

Edit: After having a look at PySctipt and pdb I realized that what I am looking is more like a visual editor with embedded debugging and the capability to read python4delphi custom modules (the ones where I export my delphi objects. Being a python noob I have no idea how p4d does this). I am probably asking too much, but would be great to find an implementation of that and not having to code it all from scratch.

like image 898
Marcelo Rauter Avatar asked Nov 21 '25 07:11

Marcelo Rauter


1 Answers

Python is really a great language. But if you need to embed script, with debug, in a Delphi application you should considere Pascal scripting, which is more available in Delphi. I use the excellent PascalScipt, in the exemples you will see editor, debugger and a lot of other functions.

like image 94
philnext Avatar answered Nov 22 '25 21:11

philnext