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

Support showing network requests with stacktraces in debug console #839

Open
junalmeida opened this issue Nov 16, 2018 · 14 comments
Open

Support showing network requests with stacktraces in debug console #839

junalmeida opened this issue Nov 16, 2018 · 14 comments
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@junalmeida
Copy link

Bring to vscode the chrome DevTools feature of showing stacktrace in debug console messages and the network connections panel.

@roblourens
Copy link
Member

We do show the first frame with each message, I think that's all chrome devtools shows, right? Or does it show the full stack?

@junalmeida
Copy link
Author

It shows the full stacktrace if you open the dropdown in the message. Here is an example:

image

@roblourens
Copy link
Member

Which console API is that from?

@junalmeida
Copy link
Author

This is from regular Google Chrome Dev Tools.

@roblourens
Copy link
Member

I mean, what was logged and how? Not using console.error. Maybe console.assert?
In which case you should see the whole stack in vscode already.

@junalmeida
Copy link
Author

In this print it was a connection error. But I can see similar stackstrace when using console.warn

@roblourens
Copy link
Member

Oh you're right, it does do that for console.error. That must be new. Yeah we would need support from vscode. Currently the debug console can't show something like this. microsoft/vscode#34981 is similar.

@auchenberg
Copy link

This is a standard feature of the Chrome DevTools console, that can log network requests, and it's related stacktrace. At this point in time we don't support this.

screen shot 2018-11-20 at 3 21 50 pm

@auchenberg auchenberg changed the title Improve debug console messages Support showing network requests with stacktraces in debug console Nov 20, 2018
@connor4312 connor4312 transferred this issue from microsoft/vscode-chrome-debug Nov 3, 2020
@connor4312 connor4312 added the feature-request Request for new features or functionality label Nov 3, 2020
@connor4312 connor4312 added this to the Backlog milestone Nov 3, 2020
@connor4312 connor4312 assigned connor4312 and unassigned roblourens Nov 3, 2020
@RedMickey
Copy link

Hello, with respect to showing network requests, it would be really great if the extension could display network traffic like Google Chrome does in the Network tab. I think It would be quite useful to have an ability to track network requests while debugging in VS Code. It could look like, for example, in the Flipper debugger.
image

@connor4312 connor4312 added the *out-of-scope Posted issue is not in scope of VS Code label Dec 5, 2023
@t-fritsch
Copy link

Hello @connor4312 👋

Just saw this issue was closed, but could you elaborate on why it is now considered "out-of-scope" ?
It's surprising for an issue that has been posted 5 years ago and that was added to the backlog 3 years ago. Is it a technical limitation ?
thanks

@connor4312
Copy link
Member

Ah, I realize the original issue scope is more narrow than the last comment (which would be out of scope). We could do simple logging of network requests/errors.

@connor4312 connor4312 reopened this Dec 5, 2023
@connor4312 connor4312 removed the *out-of-scope Posted issue is not in scope of VS Code label Dec 5, 2023
@t-fritsch
Copy link

thanks ! 🙏

@vish01
Copy link

vish01 commented Aug 15, 2024

Is there any update on this? It would be really nice if we can see the network requests going through. I'd appreciate if there's any other way to debug this. I can log the response and the request being sent but I can't see the API call itself going through.

@connor4312
Copy link
Member

connor4312 commented Aug 15, 2024

Yes: #2053. Available on nightly.

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

No branches or pull requests

7 participants