[python-win32] Quiz about debugging Python.

技術研發部-Kule Lin(林子淵) kylelin@gamania.com
Thu, 2 Jan 2003 14:25:53 +0800


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2B227.CCE23306
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
Could any one help me on debugging with Python? The platform I=A1=A6m =
running Python is Windows 2000.
=20
Every time I run python_d.exe (debug mode python) and try to import a =
dll from directory =A1=A7DLLs=A1=A8, it seems not be able to recognize =
it~~ However, python.exe (release mode) does work~
=20
Since I=A1=A6ve created a user defined dll and try to debug it with =
python, if I compile the dll into debug mode and run on release mode =
python (python.exe) it would crash instantly, if on debug mode python =
(python_d.exe) then it would say can=A1=A6t find the module. Is there =
any other possible way to get into my dll? Please help me!
=20
Thank you very much!
=20
Kyle Lin.

------_=_NextPart_001_01C2B227.CCE23306
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dbig5">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C2B26A.DAAB92B0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:PunctuationKerning/>
  =
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEve=
ry>
  =
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:=B7s=B2=D3=A9=FA=C5=E9;
	panose-1:2 2 3 0 0 0 0 0 0 0;
	mso-font-alt:PMingLiU;
	mso-font-charset:136;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:3 137232384 22 0 1048577 0;}
@font-face
	{font-family:"Comic Sans MS";
	panose-1:3 15 7 2 3 3 2 2 2 4;
	mso-font-charset:0;
	mso-generic-font-family:script;
	mso-font-pitch:variable;
	mso-font-signature:647 0 0 0 159 0;}
@font-face
	{font-family:"\@=B7s=B2=D3=A9=FA=C5=E9";
	panose-1:2 2 3 0 0 0 0 0 0 0;
	mso-font-charset:136;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:3 137232384 22 0 1048577 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:none;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:=B7s=B2=D3=A9=FA=C5=E9;
	mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:9.0pt;
	mso-bidi-font-size:9.0pt;
	font-family:"Comic Sans MS";
	mso-ascii-font-family:"Comic Sans MS";
	mso-fareast-font-family:=B7s=B2=D3=A9=FA=C5=E9;
	mso-hansi-font-family:"Comic Sans MS";
	mso-bidi-font-family:Arial;
	color:black;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;
	layout-grid:18.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:=AA=ED=AE=E6=A4=BA=A4=E5;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DZH-TW link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:24.0pt;text-justify-trim:
punctuation'>

<div class=3DSection1 style=3D'layout-grid:18.0pt'>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Could any one help me on =
debugging with
Python? The platform I=A1=A6m running Python is Windows =
2000.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Every time I run python_d.exe =
(debug
mode python) and try to import a <span class=3DSpellE>dll</span> from =
directory
=A1=A7DLLs=A1=A8, it seems not be able to recognize it~~ However, =
python.exe (release
mode) does work~<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Since I=A1=A6ve created a user =
defined <span
class=3DSpellE>dll</span> and try to debug it with python, if I compile =
the <span
class=3DSpellE>dll</span> into debug mode and run on release mode python
(python.exe) it would crash instantly, if on debug mode python =
(python_d.exe)
then it would say can=A1=A6t find the module. Is there any other =
possible way to get
into my <span class=3DSpellE>dll</span>? Please help =
me!<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Thank you very =
much!<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
color=3Dblack
face=3D"Comic Sans MS"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Comic Sans MS";
mso-bidi-font-family:Arial;color:black'>Kyle =
Lin.<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C2B227.CCE23306--