python - Can't get PyDev remote debugging to work with Eclipse -


everytime start debug server , try add breakpoint in code, get:

traceback (most recent call last):   file "/usr/lib/python2.7/dist-packages/pydev/pydevd.py", line 711, in processnetcommand       breakpoint_id = int(breakpoint_id) valueerror: invalid literal int() base 10:     'c:\\users\blah\blah\\blah\\blah\\blah\\debugger.py' 

i'm using pydev remote debugging.

it seems java interface provides correct data pydevd has changed. breakpoint id seems not prepended anymore string contains file, line number, function , condition information.

i managed make work changing processnetcommand function in pysrc/pydevd.py file.

i changed these lines (related adding breakpoint):

 710                     breakpoint_id, file, line, condition = text.split('\t', 3)  711                     breakpoint_id = int(breakpoint_id) 

into

 710                     file, line, condition = text.split('\t', 2)  711                     breakpoint_id = seq 

and these (needed removing breakpoint):

 753                     breakpoint_id, file = text.split('\t', 1)  754                     breakpoint_id = int(breakpoint_id) 

into

 753                     file = text.split('\t', 1)  754                     breakpoint_id = seq 

and afterwards happily debug again.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -