You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesdebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release noteson-testplan
OS Version: Microsoft Windows [Version 10.0.19041.450]
Steps to Reproduce:
Open a workspace that contains code with problems.
Run the code in debug mode.
When debugging stops and issues are found, try using F8 / Shift+F8 to navigate between them.
Navigation sometimes works, but often doesn't. It seems like, once navigation has stopped working, that's it gone until code is restarted.
I am debugging a fairly complex Python project that I'm unfortunately unable to share (it's a university assignment), but it's based on the Flatland Challenge.
It has occurred to me that the issue may be to do with our evaluation script spawning a window in which to visualize the simulation.
I am running VS Code with editor accessibility on and NVDA.
The exceptions also don't seem to be added to the problems area, so I can find no way to read them, which makes things ... difficult.
Does this issue occur when all extensions are disabled?: Not applicable
The exceptions not being in the problems area is expected. You should be notified once exceptions happen via alerts or by focusing on the Call Stack view.
1. If you open a very simple repository with just one file that has errors in it does `F8 / shit + F8` work as expected?
Yes.
2. Can you please try with VS Code insiders https://code.visualstudio.com/insiders/
The issue still occurs with Code Insiders 1.49.0 commit e4256dd
The exceptions not being in the problems area is expected. You should be notified once exceptions happen via alerts or by focusing on the Call Stack view.
Could you please explain what you mean by this (or link me to the relevant docs), as the call stack area of the debug sidebar doesn't seem to have any information about exceptions for me.
I'm trying to create a minimum reproducible example, but thus far having no luck.
Ok, some repro steps would be great.
As an alternative workaround you can Ctrl + Shift + M to open the problems view.
The Problems area is designed for compile Errors and Warning. I do understand how an Exception is a Problem grammaticaly speaking, but it comes from the runtime and due to that our design decision is to put it in the CallStack area.
The issue here is that it seems like the Exception happening is not accessible.
What I suggest is that we try to improve that once you focus on the Call Stack area that the aria label contains the information that the exception happened.
Alternative is that when a stop happens that we announce via an alert that it was an exception.
The issue here is that it seems like the Exception happening is not accessible.
What I suggest is that we try to improve that once you focus on the Call Stack area that the aria label contains the information that the exception happened.
Alternative is that when a stop happens that we announce via an alert that it was an exception.
Announcing that debugging has stopped due to an exception is already happening, and seems to be working in the code base where I'm experiencing this problem. The problem is that I can't read the exception that has been raised.
When I attempt to navigate the call stack view, I can determine which line each stack frame is up to, but no information about exceptions seems to be present. So this is only very slightly useful.
José Vilmar Estácio de Souza (@jvesouza) I just tried it with NVDA and it works just fine.
I am not a Java expert but do you have checked off in your breakpoints View to break on Exceptions caught and uncaught.
If you just F5 the following javascript program do you hear the stack trace
A small suggestion, if possible:
Would it be possible to implement a mechanism to copy the exception text to the clipboard?
Sometimes I need to share the results of some tests with my colleagues, including exceptions.
You can already copy the call stack, maybe not the fastest but with the following and that also works when hitting an exception:
F1 > focus call stack view
Context menu > Copy Call Stack
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesdebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release noteson-testplan
Activity
weinand commentedon Sep 4, 2020
Isidor Nikolic (@isidorn) part of this issue seems to be an accessibility problem
isidorn commentedon Sep 4, 2020
Sascha Cowley (@SaschaCowley) thanks for filling this, however let's try to find minimal repro steps.
F8 / shit + F8work as expected?I can not reproduce the issue you are facing.
The exceptions not being in the problems area is expected. You should be notified once exceptions happen via alerts or by focusing on the Call Stack view.
SaschaCowley commentedon Sep 4, 2020
Yes.
The issue still occurs with Code Insiders 1.49.0 commit e4256dd
Could you please explain what you mean by this (or link me to the relevant docs), as the call stack area of the debug sidebar doesn't seem to have any information about exceptions for me.
I'm trying to create a minimum reproducible example, but thus far having no luck.
isidorn commentedon Sep 7, 2020
Ok, some repro steps would be great.
As an alternative workaround you can
Ctrl + Shift + Mto open the problems view.The Problems area is designed for compile Errors and Warning. I do understand how an Exception is a Problem grammaticaly speaking, but it comes from the runtime and due to that our design decision is to put it in the CallStack area.
The issue here is that it seems like the Exception happening is not accessible.
What I suggest is that we try to improve that once you focus on the Call Stack area that the aria label contains the information that the exception happened.
Alternative is that when a stop happens that we announce via an alert that it was an exception.
Do you have some suggestions here?
SaschaCowley commentedon Sep 11, 2020
Announcing that debugging has stopped due to an exception is already happening, and seems to be working in the code base where I'm experiencing this problem. The problem is that I can't read the exception that has been raised.
When I attempt to navigate the call stack view, I can determine which line each stack frame is up to, but no information about exceptions seems to be present. So this is only very slightly useful.
isidorn commentedon Sep 11, 2020
Ok, so I suggest to rename this issue to "Exception information is not accessible" and I can look into improving that this milestone.
[-]Next/previous problem is unreliable[/-][+]Exception information is not accessible[/+]17 remaining items
webczat commentedon Nov 15, 2020
how does that work if you already leave it, can you return to it?
isidorn commentedon Nov 16, 2020
You can return to it:
If you would like a command for that I can also add that.
webczat commentedon Nov 16, 2020
isn't an exception also available as a local variable?
weinand commentedon Nov 16, 2020
Michał Zegan (@webczat) that depends on the implementation of the debug extension. VS Code does not stipulate this.
jvesouza commentedon Nov 16, 2020
Either I don't understand how it works, or I'm doing something wrong or it doesn't work for Java.
I created the following program for testing:
When I press f5 orca reads debug start and debug stop.
isidorn commentedon Nov 17, 2020
José Vilmar Estácio de Souza (@jvesouza) I just tried it with NVDA and it works just fine.
I am not a Java expert but do you have checked off in your breakpoints View to break on Exceptions caught and uncaught.
If you just F5 the following javascript program do you hear the stack trace
jvesouza commentedon Nov 17, 2020
Isidor Nikolic (@isidorn) After check break on Exceptions caught and uncaught, all is ok.
Thanks.
A small suggestion, if possible:
Would it be possible to implement a mechanism to copy the exception text to the clipboard?
Sometimes I need to share the results of some tests with my colleagues, including exceptions.
isidorn commentedon Nov 17, 2020
José Vilmar Estácio de Souza (@jvesouza) thanks for trying it out.
You can already copy the call stack, maybe not the fastest but with the following and that also works when hitting an exception:
F1 > focus call stack view
Context menu > Copy Call Stack
debug: make exception widget accessible