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

Configless debug #557

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

eleanorjboyd
Copy link
Member

support debugging with no config required

@eleanorjboyd eleanorjboyd self-assigned this Jan 15, 2025
@eleanorjboyd eleanorjboyd added the feature-request Request for new features or functionality label Jan 15, 2025
Copy link

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering bot added this to the January 2025 milestone Jan 15, 2025
],
"outFiles": [
"${workspaceFolder}/out/**/*.js",
],
"preLaunchTask": "tasks: watch-tests"
},
"preLaunchTask": "tasks: watch-tests" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file seems like it might have formatting issues.

Comment on lines +40 to +41
context.subscriptions.push(
createFileSystemWatcher(new RelativePattern(debugAdapterEndpointDir, '**/*')).onDidCreate((uri) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to dispose both the watcher and the event, here only the event is being disposed.

Comment on lines +62 to +68
{
type: 'python',
request: 'attach',
name: 'Attach to Python',
port: clientPort,
host: 'localhost',
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the connect field, instead of host and port directly here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can make this whole thing async.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants