Jump to content
Sign in to follow this  
Mark-

Enbedded editor, debugging, etc...

Recommended Posts

Hello,

 

We use TMS Scripter (Pascal) to allow our customers to execute custom logic on data. Embedded editor, breakpoints, stepping, variable watches, etc. are included.

 

Looking at providing Python and how to provide the same features.

 

PyScripter seems to provide all or part but, I do not see any path to embed PyScripter in our application.

 

How do you guys, using Python4Delphi, provide an IDE?

 

Thanks,

Mark

 

Share this post


Link to post
1 hour ago, bernhard_LA said:

 

you need to download and install python4delphi components  https://github.com/pyscripter/python4delphi 

there are many samples for start up 

 

Thanks for the response.

Are you saying the examples demonstrate an IDE, with debugging, breakpoints, stepping through Python code, variable examination, etc.?

 

Share this post


Link to post
13 hours ago, Mark- said:

Thanks for the response.

Are you saying the examples demonstrate an IDE, with debugging, breakpoints, stepping through Python code, variable examination, etc.?

 

Not quite.   You can use PyScripter code as a basis for providing embedded IDE functionality, however that would be non-trivial.

Share this post


Link to post
1 hour ago, pyscripter said:

Not quite.   You can use PyScripter code as a basis for providing embedded IDE functionality, however that would be non-trivial.

Thanks.

Share this post


Link to post

+1 for someone creating an embedded IDE based on PyScripter to embed into a Delphi application and provide Python editing and execution within your delphi app.

  • Like 2

Share this post


Link to post

I do not have a solution for this, but have some thoughts to explore this further:

 

Do you really need the IDE embedded in your application or could you treat it as a remote execution / debug scenario?

 

Which code, Delphi or the Python script, do you need the user to be able to watch / step into?

--how deep does the customer really need to watch into your Delphi code, first public level only?

 

Could you use PY4D to host the interpreter and then remote attach to it with the IDE?
--this is probably the path to aim for, it may require more wrapping of your Delphi code, but then you have options on the IDE side.

 

 

Share this post


Link to post
Posted (edited)

Thanks for the response.

 

>Do you really need the IDE embedded in your application or could you treat it as a remote execution / debug scenario?

 

Embedded.

 

>Which code, Delphi or the Python script, do you need the user to be able to watch / step into?

 

Python. Just like we do with TMS Scripter.

 

>Could you use PY4D to host the interpreter and then remote attach to it with the IDE?

 

I have not used PY4D. Is this different from the first question?

 

Edited by Mark-

Share this post


Link to post

They are not nearly the same functionality, stick with TMS.

 

I think of it like this, PY4D loads python39.dll into Delphi at the api level.  At this point you have an execution engine.

 

As a developer you want / need to wrap your Delphi API to make it python friendly / usable. A justification would be to python enable your end users as some sort of marketing selling point.  I fear you would be teaching / debugging your end user python which is copy paste from the internet.

 

It is valid large investment if you want to grow out of your application something like this where the Wing IDE is interacting with Blender.  Look at this as an example and just imagine the work to get there.

https://wingware.com/doc/howtos/blender

 

 

Share this post


Link to post

We are looking to add Python, not replace TMS scripter.

 

Thanks for your opinion.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×