Skip to content

Exception information is not accessible #106091

Closed

Description

  • VSCode Version: 1.48.2 (system setup)
  • OS Version: Microsoft Windows [Version 10.0.19041.450]

Steps to Reproduce:

  1. Open a workspace that contains code with problems.
  2. Run the code in debug mode.
  3. When debugging stops and issues are found, try using F8 / Shift+F8 to navigate between them.
  4. 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

Activity

  1. weinand commented on Sep 4, 2020

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) part of this issue seems to be an accessibility problem

  2. added
    under-discussion
    on Sep 4, 2020
  3. isidorn commented on Sep 4, 2020

    @isidorn

    Sascha Cowley (@SaschaCowley) thanks for filling this, however let's try to find minimal repro steps.

    1. If you open a very simple repository with just one file that has errors in it does F8 / shit + F8 work as expected?
    2. Can you please try with VS Code insiders https://code.visualstudio.com/insiders/

    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.

  4. added
    info-needed
    on Sep 4, 2020
  5. SaschaCowley commented on Sep 4, 2020

    @SaschaCowley
    Author
    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.

  6. isidorn commented on Sep 7, 2020

    @isidorn

    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.

    Do you have some suggestions here?

  7. SaschaCowley commented on Sep 11, 2020

    @SaschaCowley
    Author

    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.

  8. isidorn commented on Sep 11, 2020

    @isidorn

    Ok, so I suggest to rename this issue to "Exception information is not accessible" and I can look into improving that this milestone.

  9. changed the title [-]Next/previous problem is unreliable[/-] [+]Exception information is not accessible[/+] on Sep 11, 2020
  10. added
    accessibility
    bug
    debug
    and removed
    info-needed
    under-discussion
    on Sep 11, 2020
  11. 17 remaining items

  12. added
    feature-request
    on Nov 13, 2020
  13. webczat commented on Nov 15, 2020

    @webczat

    how does that work if you already leave it, can you return to it?

  14. isidorn commented on Nov 16, 2020

    @isidorn

    You can return to it:

    • Navigate to the CALL STACK view and click on the editor
    • Close the editor and open it again

    If you would like a command for that I can also add that.

  15. webczat commented on Nov 16, 2020

    @webczat

    isn't an exception also available as a local variable?

  16. added
    insiders-released
    and removed
    unreleased
    on Nov 16, 2020
  17. weinand commented on Nov 16, 2020

    @weinand
    Contributor

    Michał Zegan (@webczat) that depends on the implementation of the debug extension. VS Code does not stipulate this.

  18. jvesouza commented on Nov 16, 2020

    @jvesouza

    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:

    class Teste {
    public static void main(final String[] args) {
    args[1000] = "abc";
    }
    }
    
    

    When I press f5 orca reads debug start and debug stop.

  19. isidorn commented on Nov 17, 2020

    @isidorn

    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

    throw new Error('hello there');
  20. jvesouza commented on Nov 17, 2020

    @jvesouza

    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.

  21. isidorn commented on Nov 17, 2020

    @isidorn

    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

  22. added a commit that references this issue on Nov 18, 2020
    661fb42
  23. added
    on-release-notes
    on Dec 4, 2020
  24. locked and limited conversation to collaborators on Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitydebugfeature-requesthelp wantedinsiders-releasedon-release-noteson-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions