VSCode clickable URL to attach debugger#133
Merged
n-gao merged 6 commits intoTUM-DAML:masterfrom Mar 20, 2024
Merged
Conversation
n-gao
requested changes
Mar 8, 2024
Collaborator
|
@Grutschus The debug launcher has been scrapped from vscode marketplace? at least the link is dead (same for google link)? |
n-gao
reviewed
Mar 11, 2024
Contributor
Author
Collaborator
|
@Grutschus it looks like the extension is back online. Though the project is still archived. Not sure whether we want to rely on archived code? But I also don't see a big issue where. What do you think? |
Contributor
Author
|
@n-gao I think the worst that can happen here is a dead URL in the console that we can remove, should the extension become truly outdated. |
Contributor
Author
Collaborator
|
Thanks a lot! :) Just tested it, and it works great! But could you please rebase to the current master and do the following changes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Added a log message containing a clickable URL to automatically attach a debugger in VSCode. No need to create a launch config every time.
Reference issue
No issue.
What does this implement/fix?
If running
seml [collection] start --debug-server, previously, the IP and port have just been printed to the console.To attach the debugger in VSCode one had to create a launch configuration every time.
Using the VSCode extension Debug Launcher one can create clickable URLs for launch configs.
This PR adds a generator for such a URL and prints it to the console.
Additional information
I had to hack the logger in order to prevent line breaks due to the limited console width.
This is very unpretty.
If there is a better way, let me know.
_SEML_COMPLETE=1 typer seml.__main__ utils docs --name seml --output docs.mdor did not change the CLI.