Skip to content

Cannot debug plugins #44

@lab313ru

Description

@lab313ru

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions