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

only attach successfully at first time #92

Open
WeiRU087 opened this issue Feb 17, 2023 · 2 comments
Open

only attach successfully at first time #92

WeiRU087 opened this issue Feb 17, 2023 · 2 comments

Comments

@WeiRU087
Copy link

The first attach is ok, and the subsequent attempts can not hit any breakpoints.

It looks like all right as the buttons all act as attached as below shown, but the callstack in the left of vscode is empty.
image
image

Maybe the disconnet operation is not set correctly ?

@WeiRU087 WeiRU087 changed the title only attach sucessfully at first time only attach successfully at first time Feb 17, 2023
@federico-r-figueredo
Copy link

I've exactly the same issue. Breakpoints 're only hit the first time I run the debugger.

@WeiRU087
Copy link
Author

I've exactly the same issue. Breakpoints 're only hit the first time I run the debugger.

Try adding

m_Session.Detach();
m_Session.Adaptor.Dispose();

after this line https://github.com/microsoft/vscode-mono-debug/blob/main/src/csharp/MonoDebugSession.cs#L447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants