Python论坛  - 讨论区

标题:[python-chinese] 转发: 如何调试Dll

2007年04月12日 星期四 11:05

fengwei fengwei31在gmail.com
星期四 四月 12 11:05:57 HKT 2007

 

 

  _____  

·¢¼þÈË: ·ëΰ [mailto:fengw在tech.coretek.com.cn] 
·¢ËÍʱ¼ä: 2007Äê4ÔÂ12ÈÕ 10:45
ÊÕ¼þÈË: 'python-chinese在lists.python.cn'
Ö÷Ìâ: ÈçºÎµ÷ÊÔDll

 

¹¤³ÌÐèҪʹÓÃPython µ÷ÓÃCtype¿â×°ÔØ²¢µ÷ÓÃVs.netÉú³ÉµÄDLL¿âÎļþ£¬Çë½ÌÄܲ»ÄÜÔË
ÐÐʱµ÷ÊÔDLLÎļþ£¿Ê¹ÓÃʲô°ì·¨£¿Ð»Ð»

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/fc40f932/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 11:13

Leo Jay python.leojay在gmail.com
星期四 四月 12 11:13:52 HKT 2007

On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
>
> 工程需要使用Python 调用Ctype库装载并调用Vs.net生成的DLL库文件,请教能不能运行时调试DLL文件?使用什么办法?谢谢
>

你可以在VS.net中打开那个dll的工程,调试的程序设为python.exe,参数设为你的启动脚本,然后就可以debug了。


-- 
Best Regards,
Leo Jay

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 11:37

fengwei fengwei31在gmail.com
星期四 四月 12 11:37:28 HKT 2007

调试程序设为Python.exe后 ,提示为未知程序~~~~
求助,能不能详细点~~~

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
发送时间: 2007年4月12日 11:14
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] 转发: 如何调试Dll

On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
>
> 工程需要使用Python 调用Ctype库装载并调用Vs.net生成的DLL库文件,请教能不能
运行时调试DLL文件?使用什么办法?谢谢
>

你可以在VS.net中打开那个dll的工程,调试的程序设为python.exe,参数设为你的启
动脚本,然后就可以debug了。


-- 
Best Regards,
Leo Jay
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]
KJ

KJ

2007年04月12日 星期四 11:42

K J kernel1983在gmail.com
星期四 四月 12 11:42:32 HKT 2007

先要确保dll没有问题啊!

python调用有问题吗?


在 2007-4-12,上午11:37,fengwei 写道:

> 调试程序设为Python.exe后 ,提示为未知程序~~~~
> 求助,能不能详细点~~~
>
> -----邮件原件-----
> 发件人: python-chinese-bounces在lists.python.cn
> [mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
> 发送时间: 2007年4月12日 11:14
> 收件人: python-chinese在lists.python.cn
> 主题: Re: [python-chinese] 转发: 如何调试Dll
>
> On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
>>
>> 工程需要使用Python 调用Ctype库装载并调用Vs.net生成的DLL库文件,请教 
>> 能不能
> 运行时调试DLL文件?使用什么办法?谢谢
>>
>
> 你可以在VS.net中打开那个dll的工程,调试的程序设为python.exe,参数设 
> 为你的启
> 动脚本,然后就可以debug了。
>
>
> -- 
> Best Regards,
> Leo Jay
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese- 
> request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese- 
> request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 11:45

fengwei fengwei31在gmail.com
星期四 四月 12 11:45:26 HKT 2007

Dll工程编译成debug版本失败 提示找不到python_25_d.lib
是不是必须要编译成debug版本?
Release版本可以正常编译和运行。。。

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] 代表 K J
发送时间: 2007年4月12日 11:43
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] 答复: 转发: 如何调试Dll

先要确保dll没有问题啊!

python调用有问题吗?


在 2007-4-12,上午11:37,fengwei 写道:

> 调试程序设为Python.exe后 ,提示为未知程序~~~~
> 求助,能不能详细点~~~
>
> -----邮件原件-----
> 发件人: python-chinese-bounces在lists.python.cn
> [mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
> 发送时间: 2007年4月12日 11:14
> 收件人: python-chinese在lists.python.cn
> 主题: Re: [python-chinese] 转发: 如何调试Dll
>
> On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
>>
>> 工程需要使用Python 调用Ctype库装载并调用Vs.net生成的DLL库文件,请教 
>> 能不能
> 运行时调试DLL文件?使用什么办法?谢谢
>>
>
> 你可以在VS.net中打开那个dll的工程,调试的程序设为python.exe,参数设 
> 为你的启
> 动脚本,然后就可以debug了。
>
>
> -- 
> Best Regards,
> Leo Jay
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese- 
> request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese- 
> request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 11:54

Leo Jay python.leojay在gmail.com
星期四 四月 12 11:54:08 HKT 2007

On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
> 调试程序设为Python.exe后 ,提示为未知程序~~~~
> 求助,能不能详细点~~~
>

你要给一个绝对路径啊。比方说C:\Python25\python.exe


如果你调试的时候不要跟到python的代码里,那你把python25.lib复制一份,命名为python25d.lib,再链接应该就可以了。
如果你调试的时候想要跟到python的代码里,那你要自己用python的源代码编译一个python25d.lib

-- 
Best Regards,
Leo Jay

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 13:12

fengwei fengwei31在gmail.com
星期四 四月 12 13:12:17 HKT 2007

我按你说的方法设置后,调试程序出错:
'python.exe': Loaded 'D:\Python25\python.exe', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\python25.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
'python.exe': Loaded 'C:\Program Files\Google\Google Desktop
Search\GoogleDesktopNetwork3.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.
'python.exe': Unloaded 'C:\Program Files\Google\Google Desktop
Search\GoogleDesktopNetwork3.dll'
'python.exe': Unloaded 'C:\WINDOWS\system32\ws2_32.dll'
'python.exe': Unloaded 'C:\WINDOWS\system32\ws2help.dll'
'python.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.
0.2600.2982_x-ww_ac3f9c03\comctl32.dll', No symbols loaded.
'python.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.
The program '[960] python.exe: Native' has exited with code 1 (0x1).


是不是因为python.exe不是DeBUG版的原因?

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
发送时间: 2007年4月12日 11:54
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] 答复: 转发: 如何调试Dll

On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
> 调试程序设为Python.exe后 ,提示为未知程序~~~~
> 求助,能不能详细点~~~
>

你要给一个绝对路径啊。比方说C:\Python25\python.exe


如果你调试的时候不要跟到python的代码里,那你把python25.lib复制一份,命名为
python25d.lib,再链接应该就可以了。
如果你调试的时候想要跟到python的代码里,那你要自己用python的源代码编译一个
python25d.lib

-- 
Best Regards,
Leo Jay
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月13日 星期五 12:52

charles huang hyy在fjii.com
星期五 四月 13 12:52:53 HKT 2007

想用户wxpython写一个打印文本的程序,可是好像wxpython里面只能打印图片,文本的好像不行。richtext没有打印的方法。wxwidgets里面有wxRichTextPrinting的类,好像wxpython没有封装出来?
不知道大家又没什么好的办法可以打印文本(中文的)



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月20日 星期五 15:04

玄利磊 xuanll在zctt.com.cn
星期五 四月 20 15:04:59 HKT 2007

如果反过来怎么弄
我想调试脚本 但C++程序调用这个脚本

***************************************************************
玄利磊
北京中创信测科技股份有限公司
地址:北京市海淀区中关村南大街甲18号北京国际C座14层(100081)
电话:+86-10-62100363
手机:13366766514
邮箱:xuanll在zctt.com.cn
***************************************************************

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
发送时间: 2007年4月12日 11:14
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] 转发: 如何调试Dll

On 4/12/07, fengwei <fengwei31在gmail.com> wrote:
>
> 工程需要使用Python 调用Ctype库装载并调用Vs.net生成的DLL库文件,请教能不能运行时调试DLL文件?使用什么办法?谢谢
>

你可以在VS.net中打开那个dll的工程,调试的程序设为python.exe,参数设为你的启动脚本,然后就可以debug了。


-- 
Best Regards,
Leo Jay
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月20日 星期五 16:14

Leo Jay python.leojay在gmail.com
星期五 四月 20 16:14:34 HKT 2007

On 4/20/07, 玄利磊 <xuanll在zctt.com.cn> wrote:
> 如果反过来怎么弄
> 我想调试脚本 但C++程序调用这个脚本
>

调试脚本?pdb啊。

-- 
Best Regards,
Leo Jay

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月23日 星期一 10:28

玄利磊 xuanll在zctt.com.cn
星期一 四月 23 10:28:46 HKT 2007

可以像VC++或BCB中那样设置Executable for debug session 和 Program arguments吗?


-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 Leo Jay
发送时间: 2007年4月20日 16:15
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese] 答复: 转发: 如何调试Dll

On 4/20/07, 玄利磊 <xuanll在zctt.com.cn> wrote:
> 如果反过来怎么弄
> 我想调试脚本 但C++程序调用这个脚本
>

调试脚本?pdb啊。

-- 
Best Regards,
Leo Jay
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月29日 星期日 11:07

snoop hgli0904在gmail.com
星期日 四月 29 11:07:31 HKT 2007

最近做个小东西,使用urllib2和httplib发送http post请求,但是要求使用http1.0协
议。httplib里面写死的是1.1。请教有其它方法吗?

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月29日 星期日 11:30

BloodMage zhouyisu在gmail.com
星期日 四月 29 11:30:58 HKT 2007

ÖØÔØÒ»ÏÂÀ࣬ÊÖ¶¯¸Ä³É1.0¡­¡­

ÔÚ07-4-29£¬snoop <hgli0904在gmail.com> дµÀ£º
>
> ×î½ü×ö¸öС¶«Î÷£¬Ê¹ÓÃurllib2ºÍhttplib·¢ËÍhttp postÇëÇ󣬵«ÊÇÒªÇóʹÓÃhttp1.0Э
> Òé¡£httplibÀïÃæÐ´ËÀµÄÊÇ1.1¡£Çë½ÌÓÐÆäËü·½·¨Âð£¿
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070429/ed9bf134/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号