Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Exception information not available when breaking on 'Raised Exceptions' #152

Closed
DonJayamanne opened this issue Feb 28, 2018 · 3 comments
Closed

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Feb 28, 2018

The exception information (name, type) is not available when breaking on exceptions.
Exception message needs to be returned in the text property of the stopped event.

See here:
https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts#L88

@karthiknadig
Copy link
Member

Is this a new issue or regression?

@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Mar 1, 2018

I came across this last week, but assumed it was caused by #117.
After further research I've learnt that not to be the case, as mentioned above, text needs to be returned. However getting this exception information is no trivial task.

From what I can see following methods aren't being invoked (for unhandled exceptions). I guess you already know this.

    @pydevd_events.handler(pydevd_comm.CMD_SEND_CURR_EXCEPTION_TRACE)
    def on_pydevd_send_curr_exception_trace(self, seq, args):

    @pydevd_events.handler(pydevd_comm.CMD_SEND_CURR_EXCEPTION_TRACE_PROCEEDED)

@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Mar 1, 2018

Expected behavior: (modified PTVSD, but does not work for unhandled exceptions).

errorinfo

@DonJayamanne DonJayamanne changed the title Exception information not available when breaking on exceptions Exception information not available when breaking on 'Raised Exceptions' Mar 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants