-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Debug console does not have link detection #27713
Comments
@alexandrudima Apologise, I had to be more precise when saying that 'debug console' supports it. Link detection works only in the repl viewer-type part of debug console. Once Closing this for now. If people would like to have this feature, we can open it as a feature request. |
@michelkaporin @isidorn What is "the repl viewer-type part of debug console" and what steps does one need to do to see it ? |
I think @michelkaporin meant that link detection in the tree is not very useful and I agree on that. However if we evaluate err.stack the links should be detected -> reopening |
@alexandrudima I was not adding link detection to the debug console in #26203, instead just amending an existing implementation by linking it to the better link detection mechanism. Hence, sorry for the naming confusion here. By "the repl viewer-type part of debug console" I meant only the simple output that is renderer in the REPL viewer. The example above is rendering an expression rather then simple output and it was not going through the link detection before. I agree that expression evaluation probably should have detect links also, hence leave it as an open feature request. |
Thank you for the explanations. I didn't know a string in the Debug Console is handled differently if it comes from evaluating an expression or if it comes from the stdout of the debuggee. Good to know for the future. |
Would the link detection in the debug console also apply to URLs? Currently when I launch a debugging session of my Django application, it outputs the URL for the running instance in the debug console and it would be great if I could click on it to open a browser, rather than copy paste. |
We already have link detection in integrated terminal so it makes sense that we have them in debug console or other panels. @Tyriar is it an easy thing to make the link detecting sharable through all panels? |
@rebornix we've thought about that in #24489 with follow up in #23917 (comment). |
Here is a workaround to get clickable file paths (alt + click) to work for debugging: Start your debugger process in the integrated terminal. Attach the VS Code Debugger to the existing process. Voila! Debug output with clickable line numbers. More detail (Node.js):
|
@rsweetland thanks, alt+click works there! But a simpler way I found is to just use |
Thanks @vith! Just updated to your method. Much better 👍 |
There should be special characters one can introduce to the debug output that linkify anything inside them. That way link detection can be much faster, if performance is a concern. |
This would be a huge productivity boost for me if we could get something like this. A link markup (akin to markdown) would be fine or even better than automatic link detection. Currently I have to select the file path, copy it, Win+R, paste, and run to open a path. To be clear, I'd like to be able to see file paths like images be clickable, not just debug statements with line numbers. |
using this method but note that the integratedTerminal has some downsides compared to Debug Console. It's not coupled to the Callstack pane, and if you restart a process when the integratedTerminal for that process is not in focus, a new integratedTerminal opens. Also, I haven't found a way to name the terminal so they all just show up as Node Debug Console in the dropdown. |
The terminal also doesn't support evaluating expressions while debugging, colors, or quoted file paths, and it doesn't auto-clear and has extra text for every run, adding clutter. |
What about a clickable java exception stack trace in the debug console ? Could not find any extension or workaround. |
This should be fixed now via #80502 thanks to @dgozman To verify: make sure the initial comment works now for the debug console (the exception widget might not still work). |
Testing #26203
In the testplan item, we are instructed that the debug console should detect links, however it appears it does not.
Have a file with the following content:
err
The text was updated successfully, but these errors were encountered: