Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot debug plugins #44

Open
lab313ru opened this issue Sep 16, 2024 · 1 comment
Open

Cannot debug plugins #44

lab313ru opened this issue Sep 16, 2024 · 1 comment

Comments

@lab313ru
Copy link

The problem is in hooks/getcwd_hook() func:

def getcwd_hook():
    global script_folder

    cwd = getcwd_original()
    if cwd.lower() in script_folder.lower() and script_folder.lower() != cwd.lower():
        cwd = script_folder
    return cwd

It checks for cwd in script_folder which is impossible when you're trying to debug your plugin. Because cwd will be the opened binary path, not the specified by set_script_folder() call.

I think to fix that if cwd.lower() in script_folder.lower() part should be removed.

@lab313ru
Copy link
Author

And it really works: just remove first part of the condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant