This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Python debug shows no variable value in subs

Tags: None
(comma "," separated)
arnone
Registered Member
Posts
3
Karma
0
Hi all,
as a newbie with Python and KDevelop I am just walking my first steps.

Everything is new, but after some trials and errors, the combination works well.

Now I am debugging a subroutine, and usual the mousepointer opens a context menu with the variables value when pointing to a variable.

This works well in the main program, in every imported subroutine there is a message "*** NameError: name '__kdevpython_debugger_utils' ist not defined" instead of the value.

Any idea?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Works here, sounds like a setup issue. Where did you get KDevelop from (distro/package/AppImage)? Do you have a file /usr/share/kdevpythonsupport/debugger/__kdevpython_debugger_utils.py?


I'm working on the KDevelop IDE.
arnone
Registered Member
Posts
3
Karma
0
Sorry. I'am using
KDevelop 5.03
KDE Frameworks 5.28.0
Qt 5.7.1 (kompiliert gegen 5.7.1)
Das xcb Fenstersystem

from Debian stretch, uname -a returns: Linux odoo 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux

Yes, there is a file /usr/share/kdevpythonsupport/debugger/__kdevpython_debugger_utils.py.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
5.0.3 is quite old. Can you try the appimage from our website? It should just run on your system out of the box.


I'm working on the KDevelop IDE.
arnone
Registered Member
Posts
3
Karma
0
No change with newest version.

Image
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Is that with the AppImage? Strange, it works here.


I'm working on the KDevelop IDE.
User avatar
simgunz
Registered Member
Posts
56
Karma
0
OS
This happens to me as well. Possibly because I am using a python venv, so that __kdevpython_debugger_utils.py is not visible.
urlwolf
Registered Member
Posts
3
Karma
0
Could you explain how you got the debugger to work at all?
I'm also a newbie :)

Thanks
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
simgunz wrote:This happens to me as well. Possibly because I am using a python venv, so that __kdevpython_debugger_utils.py is not visible.


Oh, that is quite possibly the reason, yes. Not sure how to solve that.

The debugger should be easy enough to make work, just set up a launch config and click "Debug".


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]