Reply to topic

[python] Debugger problems if folders are symlinks

User avatar simgunz
Registered Member
Posts
55
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

Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], cecilior, eliasfarah, farid, gfielding, Google [Bot], gregorib, luther, Majestic-12 [Bot], makalister, Sogou [Bot], thunder422