Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

thaystg
Copy link
Member

@thaystg thaystg commented Dec 19, 2022

If native_debugger_break is disabled do not call G_BREAKPOINT otherwise the app will be interrupted by a signal when running in release mode a code that has a Debugger.Break()

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1675269

@thaystg thaystg requested review from lewing and lambdageek December 19, 2022 16:17
@thaystg thaystg requested a review from marek-safar as a code owner December 19, 2022 16:17
@ghost ghost added the area-Debugger-mono label Dec 19, 2022
@ghost ghost assigned thaystg Dec 19, 2022
@ghost
Copy link

ghost commented Dec 19, 2022

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

If native_debugger_break is disabled do not call G_BREAKPOINT otherwise the app will be interrupted by a signal when running in release mode a code that has a Debugger.Break()

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1675269

Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

@thaystg thaystg changed the title [mono][debugger]Fixing generating a signal when running on release mode [mono][debugger] Fix Debugger.Break() behavior when running on release mode Dec 19, 2022
@thaystg
Copy link
Member Author

thaystg commented Dec 20, 2022

@steveisok should we backport this one?

@thaystg thaystg merged commit 90c7986 into dotnet:main Dec 20, 2022
@thaystg
Copy link
Member Author

thaystg commented Jan 11, 2023

@lewing should we backport this one?

@steveisok
Copy link
Member

Yes, I think so as long as @lewing is ok w/ it.

@thaystg
Copy link
Member Author

thaystg commented Jan 11, 2023

/backport to release/7.0

@github-actions
Copy link
Contributor

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3893630409

@lambdageek
Copy link
Member

@thaystg Should we backport this to 6.0, too?

stub_debugger_user_break (void)
{
G_BREAKPOINT ();
}

@thaystg
Copy link
Member Author

thaystg commented Jan 13, 2023

@thaystg Should we backport this to 6.0, too?

stub_debugger_user_break (void)
{
G_BREAKPOINT ();
}

I think so. I will open it. :)

@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants