@@ -240,11 +240,16 @@ the "pydbgp" tool, created by ActiveState (who make the Komodo Edit/IDE
240
240
software).
241
241
242
242
To do this, go to http://code.activestate.com/komodo/remotedebugging/,
243
- download the Python client for your OS and extract it. Inside this package is
244
- a binary file called pydbgp that we can include when running a script, which
245
- will allow for remote debugging.
243
+ download the Python client for your OS and extract it.
246
244
247
- If we want to debug a script called "myscript.py", run the following: >
245
+ Inside this package is a binary file called pydbgp that we can include when
246
+ running a script, which will allow for remote debugging. If you're using
247
+ version 8 or greater, then you will need to move the dbgp directory, which is
248
+ inside pythonlib, to the same directory that contains the pydbgp executable.
249
+ If you don't do this then you will get an error saying "No module named
250
+ dbgp.client".
251
+
252
+ To debug a script called "myscript.py", run the following: >
248
253
python -S path/to/pydbgp -d localhost:9000 myscript.py
249
254
<
250
255
adding in the path to the pydbgp binary file. Running it without starting
@@ -254,10 +259,12 @@ this, you're ready to go.
254
259
NOTE: You may have a problem when trying to do an "eval". If you get an error
255
260
mentioning something about not providing a length then you need to patch the
256
261
client.py file in the Python remote debugger source code. I've created a patch
257
- that you can get at https://gist.github.com/3348076 - if using unix you can use
258
- the patch command to apply it, e.g: >
262
+ that you can get at https://gist.github.com/3348076. It will only apply cleanly
263
+ if it's for the same version as the package you downloaded.
264
+
265
+ If using unix you can use the `patch` command to apply the changes, e.g: >
259
266
260
- patch dbgp/client.py < client.patch
267
+ patch dbgp/client.py < client-7.1.0 .patch
261
268
<
262
269
If you're still having trouble, drop me an email.
263
270
0 commit comments