Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Python Debugger

<< < (6/15) > >>

dmoore:

--- Quote from: falldog on August 19, 2012, 04:09:08 pm ---Thanks,
I had build it success,

--- End quote ---

Good news!


--- Quote ---And run in CB from output/, try edit a .py file, set PythonDebugger as active debugger,
1. I try to setting PythonDebugger info from Settings|Debugger|PyDebugger, it display nothing to setup, how can I setup the python path or other setting?

--- End quote ---

Not available yet. By default it uses the path of the script. If you need something else, as a workaround use os.chdir in your script.  I plan to add support for running pdb on the current target (if the current target is a python script) which will allow you to set per target options like command line args and working directories.


--- Quote ---2. I don't know how to debug and set break point on PythonDebugger.dll,
   I run CB by CB, and set break point on PythonDebugger source code, it doesn't break on any break points.

--- End quote ---

Are you trying to debug python sources or C++ sources? It will only work on python sources.


--- Quote ---   I run a CB, and try to run another CB(fail to launch 2 CB?) for attach process to debug -> fail
   How to debug on PythonDebugger plugin?
 ???

Thanks

--- End quote ---

Not sure what you are trying to do here. It sounds like you are trying to debug the debugger?

Falldog:
Hi dmoore,
I am trying to modify PythonDebugger, so I want to debug the PythonDebugger source code(worte by you)
I had little experience on modify HAP Debuggerhttp://hapdebugger.sourceforge.net/, but it only work on Windows :'(

So I try to use CB as IDE to develop PythonPlugin, just like you do.
But I am a newer of CB, don't know how to debug for the PythonDebugger

Please help to share that how to debug the PythonDebugger plugin, I will try to trace how it work and try add some features
 :)
Thanks a lot

dmoore:

--- Quote from: falldog on August 20, 2012, 04:22:01 am ---Please help to share that how to debug the PythonDebugger plugin, I will try to trace how it work and try add some features

--- End quote ---

Sounds good. Quite a bit of work still needed :)

Re your debugging problem, it may be a bad setup in the PyDebugger project file. After you compile the plugin try switching back to CB project and debugging the default target.

Assume you were able to use the plugin to debug a python script.

Have you seen rpdb2? Eventually I want to use that (or something better) instead of pdb.

Falldog:

--- Quote from: dmoore on August 20, 2012, 05:09:52 am ---Sounds good. Quite a bit of work still needed :)
Re your debugging problem, it may be a bad setup in the PyDebugger project file. After you compile the plugin try switching back to CB project and debugging the default target.
Assume you were able to use the plugin to debug a python script.
Have you seen rpdb2? Eventually I want to use that (or something better) instead of pdb.

--- End quote ---

Thanks a lot, I can trace CB & PyDebugger now
It's so stupid issue I meet, I try to trace code by "Run" not "Debug&Continue" ...  :-[

I doesn't know what is rpdb2... @@
I just study, maybe rpdb2 and pydb is good choice

Falldog:

--- Quote from: dmoore on August 20, 2012, 05:09:52 am ---
--- Quote from: falldog on August 20, 2012, 04:22:01 am ---Please help to share that how to debug the PythonDebugger plugin, I will try to trace how it work and try add some features

--- End quote ---

Sounds good. Quite a bit of work still needed :)

Re your debugging problem, it may be a bad setup in the PyDebugger project file. After you compile the plugin try switching back to CB project and debugging the default target.

Assume you were able to use the plugin to debug a python script.

Have you seen rpdb2? Eventually I want to use that (or something better) instead of pdb.

--- End quote ---

hi dmoore,
I had modify some code to apply rpdb2
how can I provide it to you for review it?
I create the patch by Git, but it's size over the post maximum

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version