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

I can't resolve "Failed: list indices must be integers or slices, not str". What should I do? #283

Open
takkii opened this issue Dec 9, 2024 · 3 comments

Comments

@takkii
Copy link

takkii commented Dec 9, 2024

I want to solve this so that I can debug python code with debugpy.

Step in, step out, etc. are disabled when I place the cursor over them.

What should I do?

Operating environment

  • Windows 11 Home 24H2
  • use Scoop
  • Python 3.13.1

project_name.sublime-project

{
	"folders":
	[
		{
			"path": ".",
		}
	],
	"debugger_configurations":
	[
        {
            "name": "Python Debugger: Attach remote debug.",
            "type": "python",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            }
        },
        {
            "name" : "Python Debugger: Attach using process Id",
            "type" : "python",
            "request" : "attach",
            "selector": "source.python | text.html.python",
            "debugServer": 5678,
            "processId": "3108",
            "pathMappings": [{
                "localRoot": "${workspaceFolder}",
                "remoteRoot": "."
            }]
        },
        {
            "name": "Python Debugger: Current File",
            "type": "sublime",
            "platform": "windows",
            "request": "launch",
            "selector": "source.python | text.html.python",
            "program": "\\${file}",
            "console": "integratedTerminal",
        },
	],
}

windows_diarog
windows_error

@takkii
Copy link
Author

takkii commented Dec 9, 2024

I solved it myself. Thank you.

@takkii takkii closed this as completed Dec 9, 2024
@takkii
Copy link
Author

takkii commented Dec 11, 2024

This is the resolved configuration file

  • You can use debugpy from Sublime Debugger on Windows11/ WSL2.

@takkii
Copy link
Author

takkii commented Dec 16, 2024

We are currently consulting with maintainers.

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