Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Snakes in the Blocks: A python plugin
Etienne:
Hello,
I would like to use CB as the main IDE for Octave, so I downloaded the latest ShellExtention and CBILplugin, and tried it.
These are very nices plugin, specially for my prefered IL language ( www.octave.org , a Matlab replacement), specially because the best IDE is far from CB.
But, actually, I can't help having a usable debugging session:
- Octave reload every debug time , wich is slow , and forget variables from last session (so I am unable to debug).
- CB ask where is the script file every time I start a debug session , can it be possible to use (and save) the actual edited file?
- How to add watch/breakpoints?
- How to have a console, to plot some data, for example?
Or, if it is not possible, can we script CB, to add these fonctionnalities?
Thanks for all.
Etienne
dmoore:
--- Quote from: Etienne on November 26, 2008, 10:59:50 am ---But, actually, I can't help having a usable debugging session:
- Octave reload every debug time , wich is slow , and forget variables from last session (so I am unable to debug).
--- End quote ---
CB ships with a debugger for c/c++ code. My python plugin offers python debugging. If you want GUI support for debugging octave you would need to write your own plugin (or extend one of the existing ones). If you are happy to launch an external console and use octave's command line debugger (assuming this exists) then you could use the ShellExtensions plugin to do this.
--- Quote ---- CB ask where is the script file every time I start a debug session , can it be possible to use (and save) the actual edited file?
--- End quote ---
You can use my ShellExtension plugin to create a custom command to launch an external console debug session on the currently active file (e.g. for python the command would be something like "python -m pdb $file". You should then be able to right click in the editing pane and run that command on the selected file. That will launch an external console to do command line debugging (it won't be integrated with CB of course)
--- Quote ---- How to add watch/breakpoints?
--- End quote ---
you can see how I did this in the python plugin source code
--- Quote ---- How to have a console, to plot some data, for example?
--- End quote ---
non-trivial to embed gui consoles in CB. It can be done, but you'll have quite a job ahead of you.
--- Quote ---Or, if it is not possible, can we script CB, to add these fonctionnalities?
--- End quote ---
writing an octave plugin would be your best course of action.
if you want to discuss this further I suggest starting a new thread
epsilon_da:
Hello dmoore.
Is there any chances to add this Python plugin to main stream?
Compiling it seems to be too tricky.
Maybe can you setup a Build Service in
https://build.opensuse.org/
http://software.opensuse.org/search?q=codeblocks
This service will cover many distributions and keep them up to date, with your plugin, with fast no work for you.
dmoore:
--- Quote from: epsilon_da on April 17, 2009, 12:54:04 am ---
Hello dmoore.
Is there any chances to add this Python plugin to main stream?
--- End quote ---
eventually. if you ever get it to compile you will see it needs a LOT of work. let me know if you need help compiling...
--- Quote ---Compiling it seems to be too tricky.
--- End quote ---
it will be quicker for me to show you how to build it than for me to setup a build service :) (don't get me wrong, that looks interesting, I just don't have time right now)
Navigation
[0] Message Index
[*] Previous page
Go to full version