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

[python] Debugger problems if folders are symlinks

Tags: None
(comma "," separated)
User avatar
simgunz
Registered Member
Posts
56
Karma
0
OS
If a python module resides in a symlink there are two problem with KDevelop debugger:
- Breakpoint in the source code inside the symlink are not respected
- Output generated by source code inside the symlink is not printed

Is this a bug?

main.py
Code: Select all
print("MAINBEFORE")
import subfolder
print("MAINAFTER")


__init__.py
Code: Select all
print("SUBMODULE")


Case 1
Folder structure:
main.py
subfolder/__init__.py

Execute output:
MAINBEFORE
SUBMODULE
MAINAFTER

Debug output:
MAINBEFORE
SUBMODULE
MAINAFTER

Breakpoint on line: print("SUBMODULE") is respected

Case 2 folder structure
main.py
subfolder -> ./sub/ [This is a symlink]
sub/__init__.py

Execute output:
MAINBEFORE
SUBMODULE
MAINAFTER

Debug output:
MAINBEFORE
MAINAFTER

Breakpoint on line: print("SUBMODULE") is ignored


Bookmarks



Who is online

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