Title: A debugger like PyDBG in jython
Type: behaviour Severity: normal
Components: Core Versions:
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: amak Nosy List: amak, tosanjay
Priority: Keywords:

Created on 2011-11-04.08:56:10 by tosanjay, last changed 2012-03-20.09:55:40 by amak.

File name Uploaded Description Edit Remove
unnamed tosanjay, 2012-03-20.08:28:12
msg6702 (view) Author: Sanjay (tosanjay) Date: 2011-11-04.08:56:09
The only major thing that, i think, is missing in Jython is a decent debugger for Win32 native applications, like pydbg for Python. I shall appreciate if similar module can be made available in Jython.

msg6892 (view) Author: Alan Kennedy (amak) Date: 2012-03-19.21:59:55
How are you invoking these native win32 applications?

Are they invoked by jython code? Through ctypes?
msg6918 (view) Author: Sanjay (tosanjay) Date: 2012-03-20.08:28:12
As currently, there is no debugger as such, I am not trying to invoke win32 applications. This is because I want to load/attach applications with a pyDBG like debugger e.g. jyDBG! What I understand from the documents is that jython does not support ctypes. So, if there is a possibility of ctypes support, we can think of developing pydbg type debugger using ctypes. But as I mentioned, this debugger is sort of "must to have" feature, at least for me who is using jython for program analysis perspective also.

 From: Alan Kennedy <>
Sent: Monday, March 19, 2012 10:59 PM
Subject: [issue1813] A debugger like PyDBG in jython

Alan Kennedy <> added the comment:

How are you invoking these native win32 applications?

Are they invoked by jython code? Through ctypes?

nosy: +amak

Jython tracker <>
msg6919 (view) Author: Alan Kennedy (amak) Date: 2012-03-20.09:55:40
pyDBG is a dedicated Win32 application debugger.

It is custom designed for a specific purpose, and will not run on any other platform than Microsoft Windows.

Java, on the other hand, will run on many platforms. Specifically, this means that it does not have the capability to interact with natively applications, unless lots of platform specific native code is written with JNI. Since jython runs on java, it inherits Javas lack of native interaction capability.

If you can find something written in java which allows you to debug native win32 applications, then we can assist you with calling it from jython.

But I see that you've asked elsewhere for such a thing, and come up blank.

That's because it would be a ridiculously hard thing to write, and all the effort would be pointless, because there's already a perfectly good debugger in pyDBG.

I'm going to close this request: it's never going to happen.

Instead, I encourage you to email the jython-users list, explain why you want to debug win32 native applications from a JVM-based environment using jython. If you can explain what it is you are trying to achieve, then it may be possible to control pyDBG from jython, using RPC, Pyro, or some such.
Date User Action Args
2012-03-20 09:55:40amaksetstatus: open -> closed
assignee: amak
resolution: wont fix
messages: + msg6919
2012-03-20 08:28:12tosanjaysetfiles: + unnamed
messages: + msg6918
2012-03-19 21:59:55amaksetnosy: + amak
messages: + msg6892
2011-11-04 08:56:10tosanjaycreate